forked from mirror/redis
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…
Reference in New Issue