Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
adreed-msft committed Sep 30, 2024
1 parent 8569949 commit a8b81ab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions common/oauthTokenManager.go
Original file line number Diff line number Diff line change
Expand Up @@ -826,7 +826,7 @@ func init() {
g.GiveUp = false // We've stopped giving up, if we've received a fresh token.

if AzcopyCurrentJobLogger != nil {
AzcopyCurrentJobLogger.Log(LogInfo, fmt.Sprintf("Broadcasting new OAuth token."))
AzcopyCurrentJobLogger.Log(LogInfo, "Broadcasting new OAuth token.")
}

// Drop the lock, let "clients" know there's a new token.
Expand Down Expand Up @@ -879,7 +879,7 @@ retry:
// For duration,
g.Mutex.Wait()
if AzcopyCurrentJobLogger != nil {
AzcopyCurrentJobLogger.Log(LogInfo, fmt.Sprintf("Released."))
AzcopyCurrentJobLogger.Log(LogInfo, "Released.")
}

// send wait unblock
Expand All @@ -890,7 +890,7 @@ retry:
select {
case <-waitch:
if AzcopyCurrentJobLogger != nil {
AzcopyCurrentJobLogger.Log(LogInfo, fmt.Sprintf("Received signal from waitch"))
AzcopyCurrentJobLogger.Log(LogInfo, "Received signal from waitch")
}
close(waitch)
case <-time.After(totalDuration * 3):
Expand Down
2 changes: 1 addition & 1 deletion grpcctl/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ func (s *Server) InjectToken(ctx context.Context, tok *internal.Token) (*interna
if JobLog != nil {
JobLog("Received a pre-expired OAuth token via GRPC")
}
return &internal.EmptyReply{}, fmt.Errorf("token has expired before it was received (now: %v live: %v exp: %v), ")
return &internal.EmptyReply{}, fmt.Errorf("token has expired before it was received (now: %v live: %v exp: %v)", time.Now(), ev.Live, ev.Expiry)
}

// Fire events
Expand Down

0 comments on commit a8b81ab

Please sign in to comment.