Merge branch 'master' of github.com:go-redis/redis

This commit is contained in:
Vladimir Mihailenco 2021-10-05 10:07:16 +03:00
commit 2b6611c4fd
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)
}
//------------------------------------------------------------------------------