Skip to content

Commit

Permalink
Make it sleep for real.
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisberkhout committed Feb 28, 2025
1 parent ffaa07c commit bfb0956
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x-pack/filebeat/input/o365audit/poll/poll.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func (r *Poller) fetchWithDelay(item Transaction, minDelay time.Duration) error
// Delay before getting the token, so it doesn't become stale.
delay := max(item.Delay(), minDelay)
r.log.Debugf(" -- wait %s for %s", delay, item)
time.After(delay)
time.Sleep(delay)

// The order here is important. item's decorators must come first as those
// set the URL, which is required by other decorators (WithQueryParameters).
Expand Down

0 comments on commit bfb0956

Please sign in to comment.