Merge pull request #1918 from pfreixes/add_whitespace_before_addr

fix: add whitespace for avoid unlikely colisions
This commit is contained in:
Vladimir Mihailenco 2021-10-05 08:55:04 +03:00 committed by GitHub
commit 40c1cc3f31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 ") {
return false
}
return strings.HasSuffix(redisError, addr)
return strings.HasSuffix(redisError, " "+addr)
}
//------------------------------------------------------------------------------