mirror of
https://github.com/distribution/distribution.git
synced 2025-06-25 06:52:21 +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)
|
||||
return res.Err()
|
||||
},
|
||||
Username: cfg.Username,
|
||||
Password: cfg.Password,
|
||||
DB: cfg.DB,
|
||||
MaxRetries: 3,
|
||||
|
Loading…
Reference in New Issue
Block a user