Skip to content

Commit

Permalink
Fix: Fix Scan starting at wrong job.
Browse files Browse the repository at this point in the history
Make scan start at the next element of after.
  • Loading branch information
romshark committed Jun 20, 2021
1 parent 6cc6a0e commit 28b9805
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sched/sched.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ func (s *Scheduler) Scan(
if start = s.queue.Get(after); start == nil {
return false
}
start = start.Next()
} else {
start = s.queue.Front()
}
Expand Down

0 comments on commit 28b9805

Please sign in to comment.