forked from mirror/redis
Copy TLSConfig to SentinelClient options
This commit is contained in:
parent
daf101bd79
commit
9b063e2e30
11
sentinel.go
11
sentinel.go
|
@ -222,13 +222,18 @@ func (c *sentinelFailover) masterAddr() (string, error) {
|
||||||
sentinel := NewSentinelClient(&Options{
|
sentinel := NewSentinelClient(&Options{
|
||||||
Addr: sentinelAddr,
|
Addr: sentinelAddr,
|
||||||
|
|
||||||
|
MaxRetries: c.opt.MaxRetries,
|
||||||
|
|
||||||
DialTimeout: c.opt.DialTimeout,
|
DialTimeout: c.opt.DialTimeout,
|
||||||
ReadTimeout: c.opt.ReadTimeout,
|
ReadTimeout: c.opt.ReadTimeout,
|
||||||
WriteTimeout: c.opt.WriteTimeout,
|
WriteTimeout: c.opt.WriteTimeout,
|
||||||
|
|
||||||
PoolSize: c.opt.PoolSize,
|
PoolSize: c.opt.PoolSize,
|
||||||
PoolTimeout: c.opt.PoolTimeout,
|
PoolTimeout: c.opt.PoolTimeout,
|
||||||
IdleTimeout: c.opt.IdleTimeout,
|
IdleTimeout: c.opt.IdleTimeout,
|
||||||
|
IdleCheckFrequency: c.opt.IdleCheckFrequency,
|
||||||
|
|
||||||
|
TLSConfig: c.opt.TLSConfig,
|
||||||
})
|
})
|
||||||
|
|
||||||
masterAddr, err := sentinel.GetMasterAddrByName(c.masterName).Result()
|
masterAddr, err := sentinel.GetMasterAddrByName(c.masterName).Result()
|
||||||
|
|
Loading…
Reference in New Issue