Skip to content

Commit

Permalink
Merge pull request redis#1918 from pfreixes/add_whitespace_before_addr
Browse files Browse the repository at this point in the history
fix: add whitespace for avoid unlikely colisions
  • Loading branch information
vmihailenco authored Oct 5, 2021
2 parents fa51524 + 96f53a0 commit 40c1cc3
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 40c1cc3

Please sign in to comment.