Add username to create redis client
Signed-off-by: bin liu <liubin0329@gmail.com>
This commit is contained in:
parent
5f8b59177b
commit
b889cc2eb4
1 changed files with 1 additions and 0 deletions
|
@ -525,6 +525,7 @@ func (app *App) createPool(cfg configuration.Redis) *redis.Client {
|
||||||
res := cn.Ping(ctx)
|
res := cn.Ping(ctx)
|
||||||
return res.Err()
|
return res.Err()
|
||||||
},
|
},
|
||||||
|
Username: cfg.Username,
|
||||||
Password: cfg.Password,
|
Password: cfg.Password,
|
||||||
DB: cfg.DB,
|
DB: cfg.DB,
|
||||||
MaxRetries: 3,
|
MaxRetries: 3,
|
||||||
|
|
Loading…
Reference in a new issue