1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-17 18:07:01 +00:00

fix the password of redis connection options

This commit is contained in:
luzp
2020-12-06 12:56:33 +08:00
parent 3e86301b7a
commit abfe6dbdea

View File

@@ -47,7 +47,7 @@ func (r *GoRedisDriver) mergeClientOptions(c Config) *Options {
}
if opts.Password == "" {
opts.Username = c.Password
opts.Password = c.Password
}
if opts.DB == 0 {