Merge remote-tracking branch 'origin/main'

This commit is contained in:
Lykin 2024-10-18 16:37:56 +08:00
commit b0dfe348bd
1 changed files with 4 additions and 0 deletions

View File

@ -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 {