From 8e80019ed70adfdd07efec22a252f343ab4fedcd Mon Sep 17 00:00:00 2001 From: icey-yu <1186114839@qq.com> Date: Thu, 7 Nov 2024 11:03:15 +0800 Subject: [PATCH] fix: admin token cache --- pkg/common/imapi/caller.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/common/imapi/caller.go b/pkg/common/imapi/caller.go index 894c777f..3ebee921 100644 --- a/pkg/common/imapi/caller.go +++ b/pkg/common/imapi/caller.go @@ -49,6 +49,8 @@ func New(imApi string, imSecret string, defaultIMUserID string) CallerInterface imApi: imApi, imSecret: imSecret, defaultIMUserID: defaultIMUserID, + tokenCache: make(map[string]*authToken), + lock: sync.RWMutex{}, } }