mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
remove a redundant heap Init
This commit is contained in:
parent
f55a10b64d
commit
dce9c0c369
1 changed files with 0 additions and 1 deletions
|
|
@ -166,7 +166,6 @@ func (m *sortedMap) Cap(threshold int) types.Transactions {
|
||||||
delete(m.items, (*m.index)[size-1])
|
delete(m.items, (*m.index)[size-1])
|
||||||
}
|
}
|
||||||
*m.index = (*m.index)[:threshold]
|
*m.index = (*m.index)[:threshold]
|
||||||
heap.Init(m.index)
|
|
||||||
|
|
||||||
// If we had a cache, shift the back
|
// If we had a cache, shift the back
|
||||||
m.cacheMu.Lock()
|
m.cacheMu.Lock()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue