Skip to content

Commit 8ef32e8

Browse files
committed
add peers async
1 parent 6c3038a commit 8ef32e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

p2p/peer_tracker.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ func newPeerTracker(
6767
func (p *peerTracker) bootstrap(ctx context.Context, trusted []libpeer.ID) error {
6868
// store peers that have been already connected
6969
for _, c := range p.host.Network().Conns() {
70-
p.connected(c.RemotePeer())
70+
go p.connected(c.RemotePeer())
7171
}
7272

7373
connectCtx, cancel := context.WithTimeout(context.Background(), time.Second*60)

0 commit comments

Comments
 (0)