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