From 284403371354d0967b13ec933355b8a21e04f129 Mon Sep 17 00:00:00 2001 From: shenzhuan Date: Thu, 24 Nov 2022 17:08:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/config.go b/config.go index e4246e7..2fbba6a 100644 --- a/config.go +++ b/config.go @@ -2,7 +2,6 @@ package common import ( "context" - "fmt" "github.com/go-redis/redis/v8" "log" "os" @@ -83,12 +82,6 @@ func GetRedisFromConsul(vip *viper.Viper) (red *redis.Client, err error) { PoolSize: vip.GetInt("poolSize"), MinIdleConns: vip.GetInt("minIdleConn"), }) - //集群 - clusterClients := redis.NewClusterClient( - &redis.ClusterOptions{ - Addrs: []string{"192.168.100.131:6380", "192.168.100.131:6381", "192.168.100.131:6382"}, - }) - fmt.Println(clusterClients) return red, nil }