fix: FailoverOptions to Options (#1178)

Add missing options to FailoverOptions
This commit is contained in:
李锐 2019-10-21 18:21:23 +08:00 committed by Vladimir Mihailenco
parent f10f34eb29
commit 726ddef6f5
1 changed files with 5 additions and 1 deletions

View File

@ -59,7 +59,9 @@ func (opt *FailoverOptions) options() *Options {
DB: opt.DB,
Password: opt.Password,
MaxRetries: opt.MaxRetries,
MaxRetries: opt.MaxRetries,
MinRetryBackoff: opt.MinRetryBackoff,
MaxRetryBackoff: opt.MaxRetryBackoff,
DialTimeout: opt.DialTimeout,
ReadTimeout: opt.ReadTimeout,
@ -69,6 +71,8 @@ func (opt *FailoverOptions) options() *Options {
PoolTimeout: opt.PoolTimeout,
IdleTimeout: opt.IdleTimeout,
IdleCheckFrequency: opt.IdleCheckFrequency,
MinIdleConns: opt.MinIdleConns,
MaxConnAge: opt.MaxConnAge,
TLSConfig: opt.TLSConfig,
}