fix a carp

This commit is contained in:
maskpp 2024-06-22 12:02:22 +08:00
parent 0720324f56
commit e68e06b796

View file

@ -94,8 +94,8 @@ func (h *evictHeap) Len() int {
// Less implements sort.Interface as part of heap.Interface, returning which of // Less implements sort.Interface as part of heap.Interface, returning which of
// the two requested accounts has a cheaper bottleneck. // the two requested accounts has a cheaper bottleneck.
func (h *evictHeap) Less(i, j int) bool { func (h *evictHeap) Less(i, j int) bool {
txsI := (h.metas)[h.addrs[i]] txsI := h.metas[h.addrs[i]]
txsJ := (h.metas)[h.addrs[j]] txsJ := h.metas[h.addrs[j]]
lastI := txsI[len(txsI)-1] lastI := txsI[len(txsI)-1]
lastJ := txsJ[len(txsJ)-1] lastJ := txsJ[len(txsJ)-1]