Skip to content

Commit

Permalink
fix: add whitespace for avoid unlikely colisions
Browse files Browse the repository at this point in the history
  • Loading branch information
pfreixes committed Oct 4, 2021
1 parent 6dcfc56 commit 7f7c181
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion error.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ func isMovedSameConnAddr(err error, addr string) bool {
if !strings.HasPrefix(redisError, "MOVED ") {
return false
}
return strings.HasSuffix(redisError, addr)
return strings.HasSuffix(redisError, " " + addr)
}

//------------------------------------------------------------------------------
Expand Down

0 comments on commit 7f7c181

Please sign in to comment.