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:
@ -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
|
||||
|
Reference in New Issue
Block a user