Skip to content

Commit

Permalink
add Sentinel password to UniversalOptions
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitry Shmulevich <dmitry.shmulevich@sysdig.com>
  • Loading branch information
Dmitry Shmulevich committed Aug 31, 2020
1 parent 9b831b0 commit 574c211
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions universal.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ type UniversalOptions struct {
Dialer func(ctx context.Context, network, addr string) (net.Conn, error)
OnConnect func(ctx context.Context, cn *Conn) error

Username string
Password string
Username string
Password string
SentinelPassword string

MaxRetries int
MinRetryBackoff time.Duration
Expand Down Expand Up @@ -105,9 +106,10 @@ func (o *UniversalOptions) Failover() *FailoverOptions {
Dialer: o.Dialer,
OnConnect: o.OnConnect,

DB: o.DB,
Username: o.Username,
Password: o.Password,
DB: o.DB,
Username: o.Username,
Password: o.Password,
SentinelPassword: o.SentinelPassword,

MaxRetries: o.MaxRetries,
MinRetryBackoff: o.MinRetryBackoff,
Expand Down

0 comments on commit 574c211

Please sign in to comment.