1
0
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:
Vladimir Mihailenco
2017-09-27 10:58:06 +03:00
parent 34ce349cb7
commit 7cb146a31b
5 changed files with 9 additions and 9 deletions

View File

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