From fb328514d1eb369455f725e250924fc2ddf68d07 Mon Sep 17 00:00:00 2001 From: ZiHangQin <1420014281@qq.com> Date: Tue, 8 Aug 2023 13:51:00 +0800 Subject: [PATCH] =?UTF-8?q?fix(config):=20=E4=BC=98=E5=8C=96redis=E7=9A=84?= =?UTF-8?q?=E8=BF=9E=E6=8E=A5=EF=BC=8C=E5=90=8C=E4=B8=80=E8=B0=83=E5=8F=96?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6=E5=86=85=E7=9A=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- global/redis.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/global/redis.go b/global/redis.go index ebf038b..3c3dfc2 100644 --- a/global/redis.go +++ b/global/redis.go @@ -18,8 +18,8 @@ func SetupRedisConnection() error { a := fmt.Sprintf("%s:%d", config.RedisSettings.Host, config.RedisSettings.Port) fmt.Println(a) Rd, err = rueidis.NewClient(rueidis.ClientOption{ - InitAddress: []string{"192.168.88.129:6379"}, - Password: "123456", + InitAddress: []string{a}, + Password: config.RedisSettings.Password, SelectDB: config.RedisSettings.DB, DisableCache: true, })