remove basichost dep, update go-multistream

This commit is contained in:
Jeromy 2017-01-10 14:45:25 -08:00
parent c313bf0624
commit 01af0dc890
2 changed files with 13 additions and 12 deletions

View File

@ -12,7 +12,8 @@ import (
host "github.com/libp2p/go-libp2p-host" host "github.com/libp2p/go-libp2p-host"
netutil "github.com/libp2p/go-libp2p-netutil" netutil "github.com/libp2p/go-libp2p-netutil"
peer "github.com/libp2p/go-libp2p-peer" 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) { 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++ { for i := 0; i < n; i++ {
netw := netutil.GenSwarmNetwork(t, ctx) netw := netutil.GenSwarmNetwork(t, ctx)
h := bhost.New(netw) h := bhost.NewBlankHost(netw)
out = append(out, h) out = append(out, h)
} }

View File

@ -7,12 +7,6 @@
"dvcsimport": "github.com/libp2p/go-floodsub" "dvcsimport": "github.com/libp2p/go-floodsub"
}, },
"gxDependencies": [ "gxDependencies": [
{
"author": "whyrusleeping",
"hash": "QmeggSR4vMehfygFxsBPt1egWRdAEnaKZ4PyibA9wHdqwo",
"name": "go-libp2p",
"version": "4.3.4"
},
{ {
"author": "whyrusleeping", "author": "whyrusleeping",
"hash": "QmZ4Qi3GaRbjcx28Sme5eMH7RQjGkt8wHxt2a65oLaeFEV", "hash": "QmZ4Qi3GaRbjcx28Sme5eMH7RQjGkt8wHxt2a65oLaeFEV",
@ -27,15 +21,21 @@
}, },
{ {
"author": "whyrusleeping", "author": "whyrusleeping",
"hash": "QmNs7ZGmoV888a8aNysuNorScVv3vQVHS9wfut1E4Y1PQ1", "hash": "QmPsRtodRuBUir32nz5v4zuSBTSszrR1d3fA6Ahb6eaejj",
"name": "go-libp2p-host", "name": "go-libp2p-host",
"version": "1.3.6" "version": "1.3.7"
}, },
{ {
"author": "whyrusleeping", "author": "whyrusleeping",
"hash": "QmVmNjPdCCbt1We7p4oLLeBJ9vRLcis3KPVfKvfTfqrFXh", "hash": "QmPS1HTBHiJcqxDAZ4s8bGt22HtL3oC67TPR3BsrvM44Z1",
"name": "go-libp2p-netutil", "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", "gxVersion": "0.9.0",