mirror of
https://github.com/redis/go-redis.git
synced 2025-07-28 06:42:00 +03:00
Increase read timeout for blocking commands and don't retry such commands
This commit is contained in:
@ -11,7 +11,7 @@ func readTimeout(timeout time.Duration) time.Duration {
|
||||
if timeout == 0 {
|
||||
return 0
|
||||
}
|
||||
return timeout + time.Second
|
||||
return timeout + 10*time.Second
|
||||
}
|
||||
|
||||
func usePrecise(dur time.Duration) bool {
|
||||
|
Reference in New Issue
Block a user