Skip to content

Commit 8c5806e

Browse files
committedSep 13, 2024
chore: do not cache unused TTL in id_token object
1 parent e78b048 commit 8c5806e

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed
 

‎pipeline/mutate/mutator_id_token.go

-2
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ func (a *MutatorIDToken) WithCache(t *template.Template) {
7272

7373
type idTokenCacheContainer struct {
7474
ExpiresAt time.Time
75-
TTL time.Duration
7675
Token string
7776
}
7877

@@ -112,7 +111,6 @@ func (a *MutatorIDToken) tokenToCache(config *CredentialsIDTokenConfig, session
112111
a.tokenCache.SetWithTTL(
113112
key,
114113
&idTokenCacheContainer{
115-
TTL: ttl,
116114
ExpiresAt: expiresAt,
117115
Token: token,
118116
},

0 commit comments

Comments
 (0)