Skip to content

Commit 4927e89

Browse files
authored
p2p/enode: fix asyncfilter comment (#32823)
just finisher the sentence Signed-off-by: Csaba Kiraly <[email protected]>
1 parent fc8c8c1 commit 4927e89

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

p2p/enode/iter.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,8 @@ type AsyncFilterFunc func(context.Context, *Node) *Node
174174
// AsyncFilter creates an iterator which checks nodes in parallel.
175175
// The 'check' function is called on multiple goroutines to filter each node
176176
// 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 .
177+
// It can also return a new node to be returned by the iterator instead of the
178+
// original one.
178179
func AsyncFilter(it Iterator, check AsyncFilterFunc, workers int) Iterator {
179180
f := &asyncFilterIter{
180181
it: ensureSourceIter(it),

0 commit comments

Comments
 (0)