Skip to content

Commit 558c899

Browse files
authored
Merge pull request #2512 from CortexFoundation/dev
p2p/enode: fix asyncfilter comment
2 parents 57574d9 + 156b834 commit 558c899

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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)