Skip to content

Commit

Permalink
Refactor loopTicker to use time.Sleep instead to prevent high CPU usage
Browse files Browse the repository at this point in the history
  • Loading branch information
alexei-led committed Apr 4, 2024
1 parent 2ec20ce commit d7a8814
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@ func assignAddress(c context.Context, log *logrus.Entry, client kubernetes.Inter
return errors.New("reached maximum number of retries")
}

//nolint:gocyclo
func run(c context.Context, log *logrus.Entry, cfg *config.Config) error {
ctx, cancel := context.WithCancel(c)
defer cancel()
Expand Down

0 comments on commit d7a8814

Please sign in to comment.