mirror of
https://github.com/redis/go-redis.git
synced 2025-04-19 07:22:17 +03:00
Merge pull request #1456 from dmitsh/ds-sentinel-password
add Sentinel password to UniversalOptions
This commit is contained in:
commit
6115a783e1
@ -25,6 +25,7 @@ type UniversalOptions struct {
|
||||
|
||||
Username string
|
||||
Password string
|
||||
SentinelPassword string
|
||||
|
||||
MaxRetries int
|
||||
MinRetryBackoff time.Duration
|
||||
@ -108,6 +109,7 @@ func (o *UniversalOptions) Failover() *FailoverOptions {
|
||||
DB: o.DB,
|
||||
Username: o.Username,
|
||||
Password: o.Password,
|
||||
SentinelPassword: o.SentinelPassword,
|
||||
|
||||
MaxRetries: o.MaxRetries,
|
||||
MinRetryBackoff: o.MinRetryBackoff,
|
||||
|
Loading…
x
Reference in New Issue
Block a user