From 63d090155c67bd3c80e395bc73114f091d54c49d Mon Sep 17 00:00:00 2001 From: withchao <993506633@qq.com> Date: Fri, 2 Aug 2024 14:39:36 +0800 Subject: [PATCH] feat: solve the problem that modifying the cached data affects other --- internal/msggateway/user_map.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/internal/msggateway/user_map.go b/internal/msggateway/user_map.go index 36cab4ed7..5baa4f901 100644 --- a/internal/msggateway/user_map.go +++ b/internal/msggateway/user_map.go @@ -1,10 +1,6 @@ package msggateway import ( - "context" - "fmt" - "github.com/openimsdk/protocol/constant" - "github.com/openimsdk/tools/log" "github.com/openimsdk/tools/utils/datautil" "sync" "time" @@ -121,7 +117,6 @@ func (u *userMap) Get(userID string, platformID int) ([]*Client, bool, bool) { } func (u *userMap) Set(userID string, client *Client) { - log.ZDebug(context.Background(), "userMap Set", "userID", userID, "platformID", client.PlatformID, "platform", constant.PlatformIDToName(client.PlatformID), "pointer", fmt.Sprintf("%p", client)) u.lock.Lock() defer u.lock.Unlock() result, ok := u.data[userID]