Skip to content

Commit 809f92d

Browse files
author
Patrick Müller
committed
clarify comment
1 parent fb9b033 commit 809f92d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/clients/key_flow.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ func tokenExpired(token string) (bool, error) {
408408
}
409409

410410
// Pretend to be `tokenExpirationLeeway` into the future to avoid token expiring
411-
// between retrieving the token and using it in the actual request.
411+
// between retrieving the token and upstream systems validating it.
412412
now := time.Now().Add(tokenExpirationLeeway)
413413

414414
return now.After(expirationTimestampNumeric.Time), nil

0 commit comments

Comments
 (0)