From 8ef32e8e30de3186ae3fd69bd4e012d9cce3b336 Mon Sep 17 00:00:00 2001 From: Viacheslav Gonkivskyi Date: Mon, 1 Apr 2024 18:07:47 +0300 Subject: [PATCH] add peers async --- p2p/peer_tracker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p2p/peer_tracker.go b/p2p/peer_tracker.go index 403e7d56..df90ecb3 100644 --- a/p2p/peer_tracker.go +++ b/p2p/peer_tracker.go @@ -67,7 +67,7 @@ func newPeerTracker( func (p *peerTracker) bootstrap(ctx context.Context, trusted []libpeer.ID) error { // store peers that have been already connected for _, c := range p.host.Network().Conns() { - p.connected(c.RemotePeer()) + go p.connected(c.RemotePeer()) } connectCtx, cancel := context.WithTimeout(context.Background(), time.Second*60)