Browse Source

assert

pull/7402/head
chrislu 4 months ago
parent
commit
0790bb3177
  1. 3
      weed/filer/filer_deletion.go

3
weed/filer/filer_deletion.go

@ -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 {

Loading…
Cancel
Save