Skip to content

Commit a24b0a2

Browse files
committed
chore: do not cache unused TTL in id_token object
1 parent 5950726 commit a24b0a2

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

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

0 commit comments

Comments
 (0)