From bdbb4d48ccd0b604f7dd62abaa80f4799a533444 Mon Sep 17 00:00:00 2001 From: withchao <993506633@qq.com> Date: Mon, 28 Oct 2024 16:23:29 +0800 Subject: [PATCH] fix: too many tokens --- pkg/common/db/cache/token.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/common/db/cache/token.go b/pkg/common/db/cache/token.go index 7955a5ee..86d10d82 100644 --- a/pkg/common/db/cache/token.go +++ b/pkg/common/db/cache/token.go @@ -43,7 +43,7 @@ type TokenCacheRedis struct { } func NewTokenInterface(rdb redis.UniversalClient, token *tokenverify.Token) *TokenCacheRedis { - return &TokenCacheRedis{rdb: rdb} + return &TokenCacheRedis{rdb: rdb, token: token} } func (t *TokenCacheRedis) GetTokensWithoutError(ctx context.Context, userID string) (map[string]int32, error) {