Skip to content

Commit 726ddef

Browse files
sword-jinvmihailenco
authored andcommitted
fix: FailoverOptions to Options (#1178)
Add missing options to FailoverOptions
1 parent f10f34e commit 726ddef

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

sentinel.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ func (opt *FailoverOptions) options() *Options {
5959
DB: opt.DB,
6060
Password: opt.Password,
6161

62-
MaxRetries: opt.MaxRetries,
62+
MaxRetries: opt.MaxRetries,
63+
MinRetryBackoff: opt.MinRetryBackoff,
64+
MaxRetryBackoff: opt.MaxRetryBackoff,
6365

6466
DialTimeout: opt.DialTimeout,
6567
ReadTimeout: opt.ReadTimeout,
@@ -69,6 +71,8 @@ func (opt *FailoverOptions) options() *Options {
6971
PoolTimeout: opt.PoolTimeout,
7072
IdleTimeout: opt.IdleTimeout,
7173
IdleCheckFrequency: opt.IdleCheckFrequency,
74+
MinIdleConns: opt.MinIdleConns,
75+
MaxConnAge: opt.MaxConnAge,
7276

7377
TLSConfig: opt.TLSConfig,
7478
}

0 commit comments

Comments
 (0)