mirror of
https://github.com/ipfs/kubo.git
synced 2025-09-09 19:32:24 +08:00
swap net2 -> net
This commit is contained in:
@ -25,7 +25,7 @@ func (pn *peernet) Adapter(p testutil.Identity) bsnet.BitSwapNetwork {
|
||||
panic(err.Error())
|
||||
}
|
||||
routing := pn.routingserver.ClientWithDatastore(context.TODO(), p, ds.NewMapDatastore())
|
||||
return bsnet.NewFromIpfsNetwork(client, routing)
|
||||
return bsnet.NewFromIpfsHost(client, routing)
|
||||
}
|
||||
|
||||
func (pn *peernet) HasPeer(p peer.ID) bool {
|
||||
|
Reference in New Issue
Block a user