1
0
mirror of https://github.com/redis/go-redis.git synced 2025-04-17 20:17:02 +03:00

chore: fix golangci-lint

This commit is contained in:
Vladimir Mihailenco 2022-06-04 10:50:58 +03:00
parent 74fb9f0a8b
commit 1980be0f9f

View File

@ -91,7 +91,7 @@ func isBadConn(err error, allowTimeout bool, addr string) bool {
if allowTimeout {
if netErr, ok := err.(net.Error); ok && netErr.Timeout() {
return !netErr.Temporary()
return false
}
}