Skip to content

Commit

Permalink
feat: add condition for redis reconnection (#2237)
Browse files Browse the repository at this point in the history
  • Loading branch information
nick-bisonai authored Aug 27, 2024
1 parent 65ff5ae commit 2e61098
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node/pkg/db/redis.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ func isConnectionError(err error) bool {
return true
}

if strings.Contains(err.Error(), "i/o timeout") {
if strings.Contains(err.Error(), "i/o timeout") || strings.Contains(err.Error(), "connect: connection refused") {
return true
}

Expand Down

0 comments on commit 2e61098

Please sign in to comment.