Skip to content

Commit

Permalink
chore: do not cache unused TTL in id_token object
Browse files Browse the repository at this point in the history
  • Loading branch information
David-Wobrock committed Sep 13, 2024
1 parent e78b048 commit 8c5806e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions pipeline/mutate/mutator_id_token.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ func (a *MutatorIDToken) WithCache(t *template.Template) {

type idTokenCacheContainer struct {
ExpiresAt time.Time
TTL time.Duration
Token string
}

Expand Down Expand Up @@ -112,7 +111,6 @@ func (a *MutatorIDToken) tokenToCache(config *CredentialsIDTokenConfig, session
a.tokenCache.SetWithTTL(
key,
&idTokenCacheContainer{
TTL: ttl,
ExpiresAt: expiresAt,
Token: token,
},
Expand Down

0 comments on commit 8c5806e

Please sign in to comment.