Skip to content

Commit

Permalink
chore: deps: prep for upstream removing ConstructNilRouting()
Browse files Browse the repository at this point in the history
  • Loading branch information
ribasushi authored and rvagg committed Jun 19, 2024
1 parent 82110d1 commit 3e3400d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions node/modules/lp2p/host.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 3e3400d

Please sign in to comment.