From 0500449b426a5d1e3e832c5640b25cac8d3dd5d9 Mon Sep 17 00:00:00 2001 From: iamhujiebin <458249864@qq.com> Date: Mon, 28 Aug 2023 01:38:18 +0800 Subject: [PATCH] 1 --- domain/cache/res_c/country.go | 4 ++-- domain/model/group_m/mic.go | 8 ++------ 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/domain/cache/res_c/country.go b/domain/cache/res_c/country.go index 3e5744d..37c2ac6 100644 --- a/domain/cache/res_c/country.go +++ b/domain/cache/res_c/country.go @@ -18,7 +18,7 @@ func GetCountryIconMap(model *domain.Model) (map[string]string, error) { if len(m) <= 0 { return map[string]string{}, nil } - SaveAllCountryIcon(model, m) + //SaveAllCountryIcon(model, m) } return m, nil } @@ -47,7 +47,7 @@ func GetCountryAreaMap(model *domain.Model) (map[string]string, error) { if len(m) <= 0 { return map[string]string{}, nil } - SaveAllCountryArea(model, m) + //SaveAllCountryArea(model, m) } return m, nil } diff --git a/domain/model/group_m/mic.go b/domain/model/group_m/mic.go index ef72129..30ddde2 100644 --- a/domain/model/group_m/mic.go +++ b/domain/model/group_m/mic.go @@ -876,6 +876,8 @@ var micGroupNumCache = gcache.New(10000).LRU().Build() // 获取麦上有人的群组&&麦上的人数 // 带lru缓存,1min func GetMicHasInGroupNum(model *domain.Model) (map[string]int64, error) { + m := make(map[string]int64) + return m, nil // get from cache if data, err := micGroupNumCache.Get(micGroupNumKey); err == nil { //model.Log.Infof("GetMicHasInGroupNum cache hit:%v", data) @@ -891,12 +893,6 @@ func GetMicHasInGroupNum(model *domain.Model) (map[string]int64, error) { if err != nil { return nil, myerr.WrapErr(err) } - // todo 临时处理 - m := make(map[string]int64) - for _, v := range groupUuids { - m[v] = 10 - } - return m, nil // resultGroupUuids := make(map[string]int64, len(groupUuids)) //循环lua判断是否, 最后的保证,(猜想:真正麦上有人的群没有很多) -- 2.22.0