Skip to content

Commit

Permalink
fix: too many tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
withchao committed Oct 28, 2024
1 parent f102134 commit bdbb4d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/common/db/cache/token.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit bdbb4d4

Please sign in to comment.