Skip to content

Commit

Permalink
add peers async
Browse files Browse the repository at this point in the history
  • Loading branch information
vgonkivs committed Apr 1, 2024
1 parent 6c3038a commit 8ef32e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion p2p/peer_tracker.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8ef32e8

Please sign in to comment.