From 925afd0b1eec1f262ba1a3bfa31c59079861d944 Mon Sep 17 00:00:00 2001 From: fat39 Date: Wed, 16 Mar 2022 17:01:27 +0800 Subject: [PATCH 1/2] =?UTF-8?q?cluster.New=E6=97=B6=E5=85=88Refresh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mode/cluster/cluster.go | 1 + 1 file changed, 1 insertion(+) diff --git a/mode/cluster/cluster.go b/mode/cluster/cluster.go index b079fa6..5c96b9b 100644 --- a/mode/cluster/cluster.go +++ b/mode/cluster/cluster.go @@ -53,6 +53,7 @@ func New(optFuncs ...OptFunc) redigo.ModeInterface { return pool, nil }, } + rc.Refresh() return &clusterMode{rc: rc} } From 66f956bd2b56a50ae184a3245ce7719d3eb74210 Mon Sep 17 00:00:00 2001 From: fat39 Date: Wed, 16 Mar 2022 17:26:00 +0800 Subject: [PATCH 2/2] =?UTF-8?q?fork=E5=90=8E=E4=BF=AE=E6=94=B9=E8=B7=AF?= =?UTF-8?q?=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- go.mod | 2 +- mode/alone/alone.go | 2 +- mode/alone/options.go | 2 +- mode/cluster/cluster.go | 2 +- mode/cluster/options.go | 2 +- mode/sentinel/options.go | 2 +- mode/sentinel/sentinel.go | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/go.mod b/go.mod index 5c7e2e3..eee6ccd 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/letsfire/redigo/v2 +module github.com/fat39/redigo/v2 go 1.12 diff --git a/mode/alone/alone.go b/mode/alone/alone.go index 2fc4ae1..dc16c67 100644 --- a/mode/alone/alone.go +++ b/mode/alone/alone.go @@ -3,7 +3,7 @@ package alone import ( "github.com/gomodule/redigo/redis" - "github.com/letsfire/redigo/v2" + "github.com/fat39/redigo/v2" ) type aloneMode struct{ pool redis.Pool } diff --git a/mode/alone/options.go b/mode/alone/options.go index f5b3ed3..3bcc372 100644 --- a/mode/alone/options.go +++ b/mode/alone/options.go @@ -3,7 +3,7 @@ package alone import ( "github.com/gomodule/redigo/redis" - "github.com/letsfire/redigo/v2" + "github.com/fat39/redigo/v2" ) type options struct { diff --git a/mode/cluster/cluster.go b/mode/cluster/cluster.go index 5c96b9b..ab2d8c0 100644 --- a/mode/cluster/cluster.go +++ b/mode/cluster/cluster.go @@ -4,7 +4,7 @@ import ( "github.com/gomodule/redigo/redis" "github.com/mna/redisc" - "github.com/letsfire/redigo/v2" + "github.com/fat39/redigo/v2" ) type clusterMode struct { diff --git a/mode/cluster/options.go b/mode/cluster/options.go index 0efe122..9ad6253 100644 --- a/mode/cluster/options.go +++ b/mode/cluster/options.go @@ -5,7 +5,7 @@ import ( "github.com/gomodule/redigo/redis" - "github.com/letsfire/redigo/v2" + "github.com/fat39/redigo/v2" ) type options struct { diff --git a/mode/sentinel/options.go b/mode/sentinel/options.go index 515fff3..b1cea23 100644 --- a/mode/sentinel/options.go +++ b/mode/sentinel/options.go @@ -3,7 +3,7 @@ package sentinel import ( "github.com/gomodule/redigo/redis" - "github.com/letsfire/redigo/v2" + "github.com/fat39/redigo/v2" ) type options struct { diff --git a/mode/sentinel/sentinel.go b/mode/sentinel/sentinel.go index e0ce0f9..cdd4e0d 100644 --- a/mode/sentinel/sentinel.go +++ b/mode/sentinel/sentinel.go @@ -7,7 +7,7 @@ import ( "github.com/FZambia/sentinel" "github.com/gomodule/redigo/redis" - "github.com/letsfire/redigo/v2" + "github.com/fat39/redigo/v2" ) type sentinelMode struct {