Skip to content

Commit 12fedd5

Browse files
committed
fix comment docstrings
1 parent a38573b commit 12fedd5

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

credentials/jwt/jwt_token_file_call_creds.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,7 @@ func (c *jwtTokenFileCallCreds) needsPreemptiveRefreshLocked() bool {
140140
return c.isTokenValidLocked() && time.Until(c.cachedExpiry) < preemptiveRefreshThreshold
141141
}
142142

143-
// refreshToken reads the token from file.
144-
// Updates the cache and broadcasts to waiting goroutines when complete.
143+
// refreshToken reads the token from file and updates the cached data.
145144
func (c *jwtTokenFileCallCreds) refreshToken() {
146145
// Deliberately not locking c.mu here
147146
token, expiry, err := c.fileReader.ReadToken()
@@ -150,7 +149,6 @@ func (c *jwtTokenFileCallCreds) refreshToken() {
150149
defer c.mu.Unlock()
151150
c.updateCacheLocked(token, expiry, err)
152151

153-
// Reset pending refresh and broadcast to waiting goroutines
154152
c.pendingRefresh = false
155153
}
156154

0 commit comments

Comments
 (0)