Len implements heap.Interface by reporting the number of entries in the heap.
()
| 28 | |
| 29 | // Len implements heap.Interface by reporting the number of entries in the heap. |
| 30 | func (h indexedHeap) Len() int { |
| 31 | return len(h.entries) |
| 32 | } |
| 33 | |
| 34 | // Less implements heap.Interface and orders entries by expiration time. |
| 35 | func (h indexedHeap) Less(i, j int) bool { |
no outgoing calls