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 da630ca commit c9e0203
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 := time.Since(m.minHeaps[0].absExpire)
timeout := m.minHeaps[0].absExpire.Sub(time.Now())
if timeout < 0 {
timeout = 0
}
Expand Down

0 comments on commit c9e0203

Please sign in to comment.