Skip to content

Commit

Permalink
tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
flotter committed Aug 16, 2024
1 parent f888c6d commit 53edc87
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internals/overlord/overlord.go
Original file line number Diff line number Diff line change
Expand Up @@ -365,14 +365,14 @@ func (o *Overlord) ensureBefore(d time.Duration) {
// the past, let's reschedule the ensure to happen right now.
if o.ensureNext.Before(now) {
// We have to know if the timer already expired. If this is true then
// it means a channel write was already dispatched, and no further action
// is required. The overlord loop will ensure soon after this:
// it means a channel write has already taken place, and no further
// action is required. The overlord loop will ensure soon after this:
//
// https://go.dev/wiki/Go123Timer:
// < Go 1.23: buffered channel (overlord loop may not have observed yet)
// >= Go 1.23: unbuffered channel (overlord loop already observed)
//
// In both these cases, the overlord loop reset will still take place.
// In both these cases, the overlord loop ensure will still take place.
if !o.ensureTimer.Stop() {
return
}
Expand Down

0 comments on commit 53edc87

Please sign in to comment.