Start host in mocknet (#2078)
This commit is contained in:
parent
f0af39e7b7
commit
5811309d22
|
@ -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…
Reference in New Issue