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 {