Skip to content

Commit c35e241

Browse files
committed
fix
1 parent c9e0203 commit c35e241

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

min_heap.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ func (m *minHeap) getNewSleepTime() time.Duration {
104104
return time.Hour
105105
}
106106

107-
timeout := m.minHeaps[0].absExpire.Sub(time.Now())
107+
timeout := time.Until(m.minHeaps[0].absExpire)
108108
if timeout < 0 {
109109
timeout = 0
110110
}

0 commit comments

Comments
 (0)