forked from mirror/redis
Merge pull request #1918 from pfreixes/add_whitespace_before_addr
fix: add whitespace for avoid unlikely colisions
This commit is contained in:
commit
40c1cc3f31
2
error.go
2
error.go
|
@ -134,7 +134,7 @@ func isMovedSameConnAddr(err error, addr string) bool {
|
||||||
if !strings.HasPrefix(redisError, "MOVED ") {
|
if !strings.HasPrefix(redisError, "MOVED ") {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
return strings.HasSuffix(redisError, addr)
|
return strings.HasSuffix(redisError, " "+addr)
|
||||||
}
|
}
|
||||||
|
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in New Issue