fix: add whitespace for avoid unlikely colisions

This commit is contained in:
Pau Freixes 2021-10-04 15:53:57 +02:00
parent 6dcfc56151
commit 7f7c181761
1 changed files with 1 additions and 1 deletions

View File

@ -134,7 +134,7 @@ func isMovedSameConnAddr(err error, addr string) bool {
if !strings.HasPrefix(redisError, "MOVED ") { if !strings.HasPrefix(redisError, "MOVED ") {
return false return false
} }
return strings.HasSuffix(redisError, addr) return strings.HasSuffix(redisError, " " + addr)
} }
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------