Merge pull request #1686 from beluxx/master

fix the password of redis connection options
This commit is contained in:
Gerasimos (Makis) Maropoulos 2020-12-07 19:12:42 +02:00 committed by GitHub
commit bf9220d3c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 {