Skip to content

Commit

Permalink
chore: fix lint error in pq (#255)
Browse files Browse the repository at this point in the history
  • Loading branch information
yashmehrotra authored Dec 17, 2024
1 parent e5bae40 commit 9ba70fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion collections/priorityqueue.go
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ func (queue *Queue[T]) Dequeue() (T, bool) {
// Peek for notBefore
v, _ := queue.heap.Peek()
if !v.notBefore.IsZero() {
if v.notBefore.Sub(time.Now()) < 0 {
if time.Until(v.notBefore) < 0 {
return zero, false
}
}
Expand Down

0 comments on commit 9ba70fb

Please sign in to comment.