Size returns number of elements within the heap.
()
| 81 | |
| 82 | // Size returns number of elements within the heap. |
| 83 | func (h *commitNodeHeap) Size() int { |
| 84 | return h.Heap.Size() |
| 85 | } |
| 86 | |
| 87 | // generationAndDateOrderComparator compares two CommitNode objects based on their generation and commit time. |
| 88 | // If the left CommitNode object is in a higher generation or is newer than the right one, it returns a -1. |