mirror of
https://github.com/logos-messaging/go-libp2p-pubsub.git
synced 2026-01-03 13:23:07 +00:00
remove basichost dep, update go-multistream
This commit is contained in:
parent
c313bf0624
commit
01af0dc890
@ -12,7 +12,8 @@ import (
|
||||
host "github.com/libp2p/go-libp2p-host"
|
||||
netutil "github.com/libp2p/go-libp2p-netutil"
|
||||
peer "github.com/libp2p/go-libp2p-peer"
|
||||
bhost "github.com/libp2p/go-libp2p/p2p/host/basic"
|
||||
//bhost "github.com/libp2p/go-libp2p/p2p/host/basic"
|
||||
bhost "github.com/libp2p/go-libp2p-blankhost"
|
||||
)
|
||||
|
||||
func checkMessageRouting(t *testing.T, topic string, pubs []*PubSub, subs []*Subscription) {
|
||||
@ -36,7 +37,7 @@ func getNetHosts(t *testing.T, ctx context.Context, n int) []host.Host {
|
||||
|
||||
for i := 0; i < n; i++ {
|
||||
netw := netutil.GenSwarmNetwork(t, ctx)
|
||||
h := bhost.New(netw)
|
||||
h := bhost.NewBlankHost(netw)
|
||||
out = append(out, h)
|
||||
}
|
||||
|
||||
|
||||
20
package.json
20
package.json
@ -7,12 +7,6 @@
|
||||
"dvcsimport": "github.com/libp2p/go-floodsub"
|
||||
},
|
||||
"gxDependencies": [
|
||||
{
|
||||
"author": "whyrusleeping",
|
||||
"hash": "QmeggSR4vMehfygFxsBPt1egWRdAEnaKZ4PyibA9wHdqwo",
|
||||
"name": "go-libp2p",
|
||||
"version": "4.3.4"
|
||||
},
|
||||
{
|
||||
"author": "whyrusleeping",
|
||||
"hash": "QmZ4Qi3GaRbjcx28Sme5eMH7RQjGkt8wHxt2a65oLaeFEV",
|
||||
@ -27,15 +21,21 @@
|
||||
},
|
||||
{
|
||||
"author": "whyrusleeping",
|
||||
"hash": "QmNs7ZGmoV888a8aNysuNorScVv3vQVHS9wfut1E4Y1PQ1",
|
||||
"hash": "QmPsRtodRuBUir32nz5v4zuSBTSszrR1d3fA6Ahb6eaejj",
|
||||
"name": "go-libp2p-host",
|
||||
"version": "1.3.6"
|
||||
"version": "1.3.7"
|
||||
},
|
||||
{
|
||||
"author": "whyrusleeping",
|
||||
"hash": "QmVmNjPdCCbt1We7p4oLLeBJ9vRLcis3KPVfKvfTfqrFXh",
|
||||
"hash": "QmPS1HTBHiJcqxDAZ4s8bGt22HtL3oC67TPR3BsrvM44Z1",
|
||||
"name": "go-libp2p-netutil",
|
||||
"version": "0.2.5"
|
||||
"version": "0.2.6"
|
||||
},
|
||||
{
|
||||
"author": "whyrusleeping",
|
||||
"hash": "QmfNWVMoJdLVzT7wqMXjdAVAqhCx5xYfvYAcD83pFxufwS",
|
||||
"name": "go-libp2p-blankhost",
|
||||
"version": "0.1.6"
|
||||
}
|
||||
],
|
||||
"gxVersion": "0.9.0",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user