Merge pull request #2039 from jsievenpiper/sentinel-universal

feat: add support for acl sentinel auth in universal client
This commit is contained in:
Vladimir Mihailenco 2022-03-01 08:57:34 +02:00 committed by GitHub
commit 65e242e263
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -25,6 +25,7 @@ type UniversalOptions struct {
Username string
Password string
SentinelUsername string
SentinelPassword string
MaxRetries int
@ -114,6 +115,7 @@ func (o *UniversalOptions) Failover() *FailoverOptions {
DB: o.DB,
Username: o.Username,
Password: o.Password,
SentinelUsername: o.SentinelUsername,
SentinelPassword: o.SentinelPassword,
MaxRetries: o.MaxRetries,