Skip to content

Commit 905b0b9

Browse files
committed
core: rename parameter filter to filterFun for readability
1 parent 447b5f7 commit 905b0b9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/txpool/legacypool/list.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,12 +134,12 @@ func (m *SortedMap) reheap() {
134134

135135
// filter is identical to Filter, but **does not** regenerate the heap. This method
136136
// should only be used if followed immediately by a call to Filter or reheap()
137-
func (m *SortedMap) filter(filter func(*types.Transaction) bool) types.Transactions {
137+
func (m *SortedMap) filter(filterFun func(*types.Transaction) bool) types.Transactions {
138138
var removed types.Transactions
139139

140140
// Collect all the transactions to filter out
141141
for nonce, tx := range m.items {
142-
if filter(tx) {
142+
if filterFun(tx) {
143143
removed = append(removed, tx)
144144
delete(m.items, nonce)
145145
}

0 commit comments

Comments
 (0)