From 09fc762a58cd5fe043f06ad333097f05d53d3a53 Mon Sep 17 00:00:00 2001 From: icey-yu <1186114839@qq.com> Date: Thu, 5 Sep 2024 17:58:11 +0800 Subject: [PATCH] feat: sleep --- pkg/rpccache/online.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/rpccache/online.go b/pkg/rpccache/online.go index 94fbbe466..943fff5db 100644 --- a/pkg/rpccache/online.go +++ b/pkg/rpccache/online.go @@ -26,6 +26,7 @@ func NewOnlineCache(user rpcclient.UserRpcClient, group *GroupLocalCache, rdb re switch x.fullUserCache { case true: + time.Sleep(time.Second * 5) x.mapCache = cacheutil.NewCache[string, []int32]() if err := x.initUsersOnlineStatus(mcontext.SetOperationID(context.TODO(), strconv.FormatInt(time.Now().UnixNano()+int64(rand.Uint32()), 10))); err != nil { return nil, err