chore: deps: prep for upstream removing ConstructNilRouting()
see https://github.com/ipfs/boxo/pull/621
This commit is contained in:
parent
82110d1c52
commit
3e3400db89
@ -4,10 +4,10 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
nilrouting "github.com/ipfs/boxo/routing/none"
|
|
||||||
"github.com/libp2p/go-libp2p"
|
"github.com/libp2p/go-libp2p"
|
||||||
dht "github.com/libp2p/go-libp2p-kad-dht"
|
dht "github.com/libp2p/go-libp2p-kad-dht"
|
||||||
record "github.com/libp2p/go-libp2p-record"
|
record "github.com/libp2p/go-libp2p-record"
|
||||||
|
routinghelpers "github.com/libp2p/go-libp2p-routing-helpers"
|
||||||
"github.com/libp2p/go-libp2p/core/host"
|
"github.com/libp2p/go-libp2p/core/host"
|
||||||
"github.com/libp2p/go-libp2p/core/peer"
|
"github.com/libp2p/go-libp2p/core/peer"
|
||||||
"github.com/libp2p/go-libp2p/core/peerstore"
|
"github.com/libp2p/go-libp2p/core/peerstore"
|
||||||
@ -115,7 +115,7 @@ func DHTRouting(mode dht.ModeOpt) interface{} {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func NilRouting(mctx helpers.MetricsCtx) (BaseIpfsRouting, error) {
|
func NilRouting(mctx helpers.MetricsCtx) (BaseIpfsRouting, error) {
|
||||||
return nilrouting.ConstructNilRouting(mctx, nil, nil, nil)
|
return &routinghelpers.Null{}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func RoutedHost(rh RawHost, r BaseIpfsRouting) host.Host {
|
func RoutedHost(rh RawHost, r BaseIpfsRouting) host.Host {
|
||||||
|
Loading…
Reference in New Issue
Block a user