mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-24 05:36:46 +00:00
set cache to nil
This commit is contained in:
parent
90f83f4b37
commit
f4ead0dbba
1 changed files with 3 additions and 0 deletions
|
|
@ -125,6 +125,9 @@ func (m *SortedMap) Filter(filter func(*types.Transaction) bool) types.Transacti
|
|||
func (m *SortedMap) reheap() {
|
||||
*m.index = slices.Collect(maps.Keys(m.items))
|
||||
heap.Init(m.index)
|
||||
m.cacheMu.Lock()
|
||||
m.cache = nil
|
||||
m.cacheMu.Unlock()
|
||||
}
|
||||
|
||||
// filter is identical to Filter, but **does not** regenerate the heap. This method
|
||||
|
|
|
|||
Loading…
Reference in a new issue