forked from mirror/redis
Merge branch 'master' of github.com:go-redis/redis
This commit is contained in:
commit
2b6611c4fd
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