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 Nov 11, 2024
1 parent b03e292 commit 5ffc3e7
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 @@ -111,7 +110,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 5ffc3e7

Please sign in to comment.