mirror of
https://github.com/redis/go-redis.git
synced 2025-07-22 10:01:50 +03:00
fix: add whitespace for avoid unlikely colisions
This commit is contained in:
2
error.go
2
error.go
@ -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)
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user