mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-22 20:56:42 +00:00
core: rename parameter filter to filterFun for readability
This commit is contained in:
parent
447b5f7e19
commit
905b0b981a
1 changed files with 2 additions and 2 deletions
|
|
@ -134,12 +134,12 @@ func (m *SortedMap) reheap() {
|
|||
|
||||
// filter is identical to Filter, but **does not** regenerate the heap. This method
|
||||
// should only be used if followed immediately by a call to Filter or reheap()
|
||||
func (m *SortedMap) filter(filter func(*types.Transaction) bool) types.Transactions {
|
||||
func (m *SortedMap) filter(filterFun func(*types.Transaction) bool) types.Transactions {
|
||||
var removed types.Transactions
|
||||
|
||||
// Collect all the transactions to filter out
|
||||
for nonce, tx := range m.items {
|
||||
if filter(tx) {
|
||||
if filterFun(tx) {
|
||||
removed = append(removed, tx)
|
||||
delete(m.items, nonce)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue