1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-09-09 17:22:21 +08:00

Add router that does nothing for bitswap_wo_routing test

License: MIT
Signed-off-by: Karthik Bala <karthikbala444@gmail.com>
This commit is contained in:
Karthik Bala
2015-08-14 20:02:16 -07:00
parent fbac82046d
commit d140b8aae1
3 changed files with 54 additions and 1 deletions

View File

@ -40,6 +40,7 @@ import (
dht "github.com/ipfs/go-ipfs/routing/dht"
kb "github.com/ipfs/go-ipfs/routing/kbucket"
offroute "github.com/ipfs/go-ipfs/routing/offline"
nilrouting "github.com/ipfs/go-ipfs/routing/none"
bstore "github.com/ipfs/go-ipfs/blocks/blockstore"
bserv "github.com/ipfs/go-ipfs/blockservice"
@ -613,3 +614,4 @@ type RoutingOption func(context.Context, p2phost.Host, ds.ThreadSafeDatastore) (
type DiscoveryOption func(p2phost.Host) (discovery.Service, error)
var DHTOption RoutingOption = constructDHTRouting
var NilRouterOption RoutingOption = nilrouting.ConstructNilRouting