Skip to content

Commit

Permalink
remove redundant timer stop
Browse files Browse the repository at this point in the history
  • Loading branch information
atye committed Nov 14, 2024
1 parent 0dc03f6 commit d168625
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions internal/service/token_getter.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,8 @@ func (tg *TokenManager) Start(ctx context.Context) error {
tg.updateTokenFromPowerFlex()
timer.Reset(tg.Config.TokenRefreshInterval)
case <-tg.done:
timer.Stop()
return nil
case <-ctx.Done():
timer.Stop()
return ctx.Err()
}
}
Expand Down

0 comments on commit d168625

Please sign in to comment.