chore: deps: prep for upstream removing ConstructNilRouting()

see https://github.com/ipfs/boxo/pull/621
This commit is contained in:
Peter Rabbitson 2024-06-18 20:12:47 +02:00 committed by Rod Vagg
parent 82110d1c52
commit 3e3400db89

View File

@ -4,10 +4,10 @@ import (
"context"
"fmt"
nilrouting "github.com/ipfs/boxo/routing/none"
"github.com/libp2p/go-libp2p"
dht "github.com/libp2p/go-libp2p-kad-dht"
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/peer"
"github.com/libp2p/go-libp2p/core/peerstore"
@ -115,7 +115,7 @@ func DHTRouting(mode dht.ModeOpt) interface{} {
}
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 {