Merge remote-tracking branch 'origin/main'
This commit is contained in:
commit
b0dfe348bd
|
@ -226,6 +226,10 @@ func (c *connectionService) createRedisClient(config types.ConnectionConfig) (re
|
||||||
option.Addr = net.JoinHostPort(addr[0], addr[1])
|
option.Addr = net.JoinHostPort(addr[0], addr[1])
|
||||||
option.Username = config.Sentinel.Username
|
option.Username = config.Sentinel.Username
|
||||||
option.Password = config.Sentinel.Password
|
option.Password = config.Sentinel.Password
|
||||||
|
if option.Dialer != nil {
|
||||||
|
option.ReadTimeout = -2
|
||||||
|
option.WriteTimeout = -2
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if config.LastDB > 0 {
|
if config.LastDB > 0 {
|
||||||
|
|
Loading…
Reference in New Issue