diff --git a/pkg/utils/redis.go b/pkg/utils/redis.go index 308a622..c7fc169 100644 --- a/pkg/utils/redis.go +++ b/pkg/utils/redis.go @@ -27,7 +27,7 @@ func InitRedis() rueidis.Client { func GetRedisClient() (rueidis.Client, context.Context) { onceRedis.Do(func() { - InitRedis() + rdb = InitRedis() }) return rdb, ctx }