|
|
@ -47,6 +47,9 @@ type DeletionRetryItem struct { |
|
|
// Items are ordered by NextRetryAt (earliest first)
|
|
|
// Items are ordered by NextRetryAt (earliest first)
|
|
|
type retryHeap []*DeletionRetryItem |
|
|
type retryHeap []*DeletionRetryItem |
|
|
|
|
|
|
|
|
|
|
|
// Compile-time assertion that retryHeap implements heap.Interface
|
|
|
|
|
|
var _ heap.Interface = (*retryHeap)(nil) |
|
|
|
|
|
|
|
|
func (h retryHeap) Len() int { return len(h) } |
|
|
func (h retryHeap) Len() int { return len(h) } |
|
|
|
|
|
|
|
|
func (h retryHeap) Less(i, j int) bool { |
|
|
func (h retryHeap) Less(i, j int) bool { |
|
|
|