From e61c34c069adbadbee6d7aa4df7c7f74142821fa Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Fri, 22 Mar 2024 16:36:35 +0800 Subject: [PATCH] 1 --- server/imserver_new/cache/cachemgr.go | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/server/imserver_new/cache/cachemgr.go b/server/imserver_new/cache/cachemgr.go index e9d09b93..d2b097da 100644 --- a/server/imserver_new/cache/cachemgr.go +++ b/server/imserver_new/cache/cachemgr.go @@ -6,8 +6,7 @@ import ( ) type CacheMgr struct { - mu sync.Mutex - cacheMutex sync.Mutex + cacheMutex sync.Mutex cachePlayerProfiles map[string]*common.CachePlayerProfile } @@ -18,10 +17,6 @@ func (this *CacheMgr) init() { func (this *CacheMgr) UnInit() { } -func (this *CacheMgr) SyncGetUsers(accountIds []string, cb func(bool)) { - -} - func (this *CacheMgr) AsyncGetUsers(accountIds []string, cb func(bool)) { var wg sync.WaitGroup successCount := 0 @@ -57,7 +52,7 @@ func (this *CacheMgr) AsyncGetUsers(accountIds []string, cb func(bool)) { } } -func (this *CacheMgr) AddPlayerProfile(version int, playerProfile *common.PlayerProfile) { +func (this *CacheMgr) addPlayerProfile(version int, playerProfile *common.PlayerProfile) { this.cachePlayerProfiles[playerProfile.AccountId] = &common.CachePlayerProfile{ Version: version, Data: playerProfile,