Skip to content

Commit c9e0203

Browse files
committed
fix
1 parent da630ca commit c9e0203

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 := time.Since(m.minHeaps[0].absExpire)
107+
timeout := m.minHeaps[0].absExpire.Sub(time.Now())
108108
if timeout < 0 {
109109
timeout = 0
110110
}

0 commit comments

Comments
 (0)