mirror of
https://github.com/distribution/distribution.git
synced 2025-06-25 15:03:25 +00:00
Merge pull request #4027 from liubin/add-redis-username
Add username to create redis client
This commit is contained in:
commit
b0276a2793
@ -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 New Issue
Block a user