Browse Source

Start host in mocknet (#2078)

marco/update-go-multistream
Marco Munizaga 2 years ago
committed by GitHub
parent
commit
5811309d22
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      p2p/net/mock/mock_net.go

1
p2p/net/mock/mock_net.go

@ -122,6 +122,7 @@ func (mn *mocknet) AddPeerWithPeerstore(p peer.ID, ps peerstore.Peerstore) (host
if err != nil {
return nil, err
}
h.Start()
mn.Lock()
mn.nets[n.peer] = n

Loading…
Cancel
Save