mirror of
https://github.com/redis/go-redis.git
synced 2025-04-17 20:17:02 +03:00
fix: add whitespace for avoid unlikely colisions
This commit is contained in:
parent
6dcfc56151
commit
7f7c181761
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)
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
Loading…
x
Reference in New Issue
Block a user