File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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.
145144func (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
You can’t perform that action at this time.
0 commit comments