From 1a78f6ecdb7c284ecdcd780ab1abbb4e03eff133 Mon Sep 17 00:00:00 2001 From: withchao <993506633@qq.com> Date: Fri, 14 Feb 2025 11:35:38 +0800 Subject: [PATCH] 1 --- pkg/common/storage/cache/redis/online.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkg/common/storage/cache/redis/online.go b/pkg/common/storage/cache/redis/online.go index c11473695..9719e1a43 100644 --- a/pkg/common/storage/cache/redis/online.go +++ b/pkg/common/storage/cache/redis/online.go @@ -7,7 +7,6 @@ import ( "strings" "time" - "github.com/openimsdk/open-im-server/v3/pkg/common/config" "github.com/openimsdk/open-im-server/v3/pkg/common/storage/cache" "github.com/openimsdk/open-im-server/v3/pkg/common/storage/cache/cachekey" "github.com/openimsdk/open-im-server/v3/pkg/common/storage/cache/mcache" @@ -18,7 +17,10 @@ import ( ) func NewUserOnline(rdb redis.UniversalClient) cache.OnlineCache { - if rdb == nil || config.Standalone() { + //if rdb == nil || config.Standalone() { + // return mcache.NewOnlineCache() + //} + if rdb == nil { return mcache.NewOnlineCache() } return &userOnline{