fix: reset `ReadTimeout`&`ReadTimeout` for sentinel mode through ssh
This commit is contained in:
parent
3f5b63a36f
commit
ca9f0a08e1
|
@ -226,6 +226,10 @@ func (c *connectionService) createRedisClient(config types.ConnectionConfig) (re
|
|||
option.Addr = net.JoinHostPort(addr[0], addr[1])
|
||||
option.Username = config.Sentinel.Username
|
||||
option.Password = config.Sentinel.Password
|
||||
if option.Dialer != nil {
|
||||
option.ReadTimeout = -2
|
||||
option.WriteTimeout = -2
|
||||
}
|
||||
}
|
||||
|
||||
if config.LastDB > 0 {
|
||||
|
|
Loading…
Reference in New Issue