![]() Since heap is already sorted, we can just check first element to see if anything is expiry, rather than popping and pushing it back. If nothing is expiry, pop operation is unnecessary. Signed-off-by: Gyuho Lee <gyuhox@gmail.com> |
||
---|---|---|
.. | ||
leasehttp | ||
leasepb | ||
doc.go | ||
lease_queue.go | ||
lease_queue_test.go | ||
lessor.go | ||
lessor_bench_test.go | ||
lessor_test.go |