From b889cc2eb47e1a201b37f3cec24bd49b65dc0232 Mon Sep 17 00:00:00 2001 From: bin liu Date: Tue, 29 Aug 2023 16:27:43 +0800 Subject: [PATCH] Add username to create redis client Signed-off-by: bin liu --- registry/handlers/app.go | 1 + 1 file changed, 1 insertion(+) diff --git a/registry/handlers/app.go b/registry/handlers/app.go index 8901e196..04e3a070 100644 --- a/registry/handlers/app.go +++ b/registry/handlers/app.go @@ -525,6 +525,7 @@ func (app *App) createPool(cfg configuration.Redis) *redis.Client { res := cn.Ping(ctx) return res.Err() }, + Username: cfg.Username, Password: cfg.Password, DB: cfg.DB, MaxRetries: 3,