From 574c21139dacfd27282c8c97844495bb534a5035 Mon Sep 17 00:00:00 2001 From: Dmitry Shmulevich Date: Mon, 31 Aug 2020 08:57:01 -0700 Subject: [PATCH] add Sentinel password to UniversalOptions Signed-off-by: Dmitry Shmulevich --- universal.go | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/universal.go b/universal.go index 8c07ab17..5a7d0d5b 100644 --- a/universal.go +++ b/universal.go @@ -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 @@ -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,