mirror of https://github.com/go-redis/redis.git
chore: fix golangci-lint
This commit is contained in:
parent
74fb9f0a8b
commit
1980be0f9f
2
error.go
2
error.go
|
@ -91,7 +91,7 @@ func isBadConn(err error, allowTimeout bool, addr string) bool {
|
||||||
|
|
||||||
if allowTimeout {
|
if allowTimeout {
|
||||||
if netErr, ok := err.(net.Error); ok && netErr.Timeout() {
|
if netErr, ok := err.(net.Error); ok && netErr.Timeout() {
|
||||||
return !netErr.Temporary()
|
return false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue