Merge pull request #4027 from liubin/add-redis-username

Add username to create redis client
This commit is contained in:
Milos Gajdos 2023-08-29 11:07:55 +01:00 committed by GitHub
commit b0276a2793
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,