From 7f7c1817617cfec909efb13d14ad22ef05a6ad4c Mon Sep 17 00:00:00 2001 From: Pau Freixes Date: Mon, 4 Oct 2021 15:53:57 +0200 Subject: [PATCH 1/2] fix: add whitespace for avoid unlikely colisions --- error.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/error.go b/error.go index 5025215b..9ed6156e 100644 --- a/error.go +++ b/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) } //------------------------------------------------------------------------------ From 96f53a0159a28affa94beec1543a62234e7f8b32 Mon Sep 17 00:00:00 2001 From: Pau Freixes Date: Mon, 4 Oct 2021 17:20:29 +0200 Subject: [PATCH 2/2] fix: format --- error.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/error.go b/error.go index 9ed6156e..521594bb 100644 --- a/error.go +++ b/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) } //------------------------------------------------------------------------------