From 7a8346bdd312b1a2b22f4c1b718ff36182da090c Mon Sep 17 00:00:00 2001 From: withchao <993506633@qq.com> Date: Tue, 7 Jan 2025 11:21:31 +0800 Subject: [PATCH] fix: GetUsersOnline --- pkg/rpccache/online.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/rpccache/online.go b/pkg/rpccache/online.go index 32b2f2889..b5308bbe8 100644 --- a/pkg/rpccache/online.go +++ b/pkg/rpccache/online.go @@ -270,8 +270,8 @@ func (o *OnlineCache) GetUsersOnline(ctx context.Context, userIDs []string) ([]s } } - log.ZInfo(ctx, "get users online", "online users length", len(userIDs), "offline users length", len(offlineUserIDs), "cost", time.Since(t)) - return userIDs, offlineUserIDs, nil + log.ZInfo(ctx, "get users online", "online users length", len(onlineUserIDs), "offline users length", len(offlineUserIDs), "cost", time.Since(t)) + return onlineUserIDs, offlineUserIDs, nil } func (o *OnlineCache) setUserOnline(userID string, platformIDs []int32) {