Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
guonaihong committed May 15, 2024
1 parent c9e0203 commit c35e241
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion min_heap.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ func (m *minHeap) getNewSleepTime() time.Duration {
return time.Hour
}

timeout := m.minHeaps[0].absExpire.Sub(time.Now())
timeout := time.Until(m.minHeaps[0].absExpire)
if timeout < 0 {
timeout = 0
}
Expand Down

0 comments on commit c35e241

Please sign in to comment.