From 422595e760f25c18106086dc95910e52a2ad1faa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=AE=8F=E6=B3=A2?= <1074005591@qq.com> Date: Fri, 12 Jun 2020 10:39:41 +0800 Subject: [PATCH] =?UTF-8?q?redis=E5=A2=9E=E5=8A=A0=E9=80=89=E5=BA=93?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- configure/channel.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure/channel.go b/configure/channel.go index f85fb8f..1362931 100755 --- a/configure/channel.go +++ b/configure/channel.go @@ -30,7 +30,7 @@ func Init() { RoomKeys.redisCli = redis.NewClient(&redis.Options{ Addr: Config.GetString("redis_addr"), Password: Config.GetString("redis_pwd"), - DB: 0, + DB: Config.GetInt("redis_db"), }) _, err := RoomKeys.redisCli.Ping().Result()