From f642aa054f18bbff9c7200d074d78551a80f0437 Mon Sep 17 00:00:00 2001 From: junleea <354425203@qq.com> Date: Sat, 17 Aug 2024 14:13:29 +0800 Subject: [PATCH] redis psw --- worker/redis.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/worker/redis.go b/worker/redis.go index da00887..bc19b5f 100644 --- a/worker/redis.go +++ b/worker/redis.go @@ -17,9 +17,9 @@ func InitRedis() error { ctx := context.Background() // 连接redis redisClient = redis.NewClient(&redis.Options{ - Addr: proto.REDIS_ADDR, // Redis 服务器地址 - //Password: proto.REDIS_PASSWORD, // 如果 Redis 设置了密码 - DB: proto.REIDS_DB, // 使用的数据库编号 + Addr: proto.REDIS_ADDR, // Redis 服务器地址 + Password: proto.REDIS_PASSWORD, // 如果 Redis 设置了密码 + DB: proto.REIDS_DB, // 使用的数据库编号 }) // 验证 Redis 客户端是否可以正常工作