Skip to content

Commit 7f7c181

Browse files
committed
fix: add whitespace for avoid unlikely colisions
1 parent 6dcfc56 commit 7f7c181

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

error.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ func isMovedSameConnAddr(err error, addr string) bool {
134134
if !strings.HasPrefix(redisError, "MOVED ") {
135135
return false
136136
}
137-
return strings.HasSuffix(redisError, addr)
137+
return strings.HasSuffix(redisError, " " + addr)
138138
}
139139

140140
//------------------------------------------------------------------------------

0 commit comments

Comments
 (0)