We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc8c8c1 commit 4927e89Copy full SHA for 4927e89
p2p/enode/iter.go
@@ -174,7 +174,8 @@ type AsyncFilterFunc func(context.Context, *Node) *Node
174
// AsyncFilter creates an iterator which checks nodes in parallel.
175
// The 'check' function is called on multiple goroutines to filter each node
176
// from the upstream iterator. When check returns nil, the node will be skipped.
177
-// 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
178
+// original one.
179
func AsyncFilter(it Iterator, check AsyncFilterFunc, workers int) Iterator {
180
f := &asyncFilterIter{
181
it: ensureSourceIter(it),
0 commit comments