diff --git a/p2p/discover/table.go b/p2p/discover/table.go index 721cd7b589..4a0fdd9422 100644 --- a/p2p/discover/table.go +++ b/p2p/discover/table.go @@ -769,7 +769,7 @@ func (tab *Table) waitForNodes(ctx context.Context, n int) error { } if ch == nil { // Init subscription. - ch = make(chan *enode.Node) + ch = make(chan *enode.Node, 1) sub := tab.nodeFeed.Subscribe(ch) defer sub.Unsubscribe() }