mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-03-08 04:15:04 +00:00
p2p/enode: fix asyncfilter comment (#32823)
just finisher the sentence Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
This commit is contained in:
parent
fc8c8c1314
commit
4927e89647
1 changed files with 2 additions and 1 deletions
|
|
@ -174,7 +174,8 @@ type AsyncFilterFunc func(context.Context, *Node) *Node
|
|||
// AsyncFilter creates an iterator which checks nodes in parallel.
|
||||
// The 'check' function is called on multiple goroutines to filter each node
|
||||
// from the upstream iterator. When check returns nil, the node will be skipped.
|
||||
// It can also return a new node to be returned by the iterator instead of the .
|
||||
// It can also return a new node to be returned by the iterator instead of the
|
||||
// original one.
|
||||
func AsyncFilter(it Iterator, check AsyncFilterFunc, workers int) Iterator {
|
||||
f := &asyncFilterIter{
|
||||
it: ensureSourceIter(it),
|
||||
|
|
|
|||
Loading…
Reference in a new issue