(err error)
| 172 | } |
| 173 | |
| 174 | func isRedisError(err error) bool { |
| 175 | // Check if error implements the Error interface (works with wrapped errors) |
| 176 | var redisErr Error |
| 177 | if errors.As(err, &redisErr) { |
| 178 | return true |
| 179 | } |
| 180 | // Also check for proto.RedisError specifically |
| 181 | var protoRedisErr proto.RedisError |
| 182 | return errors.As(err, &protoRedisErr) |
| 183 | } |
| 184 | |
| 185 | func isBadConn(err error, allowTimeout bool, addr string) bool { |
| 186 | if err == nil { |
no outgoing calls
no test coverage detected