From 105b730f3d1356474fc5fb1222d531f157214c32 Mon Sep 17 00:00:00 2001 From: Adin Schmahmann Date: Thu, 22 Apr 2021 19:09:41 -0400 Subject: [PATCH] fix from when updating deps --- core/node/libp2p/routing.go | 7 ++++--- core/node/provider.go | 1 + 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/core/node/libp2p/routing.go b/core/node/libp2p/routing.go index a415dd3ced5..576a714d86b 100644 --- a/core/node/libp2p/routing.go +++ b/core/node/libp2p/routing.go @@ -81,9 +81,10 @@ func BaseRouting(experimentalDHTClient bool) interface{} { expClient, err := fullrt.NewFullRT(ctx, in.Host, dht.DefaultPrefix, - fullrt.Validator(in.Validator), - fullrt.Datastore(in.Repo.Datastore()), - fullrt.BootstrapPeers(bspeers...)) + dht.Validator(in.Validator), + dht.Datastore(in.Repo.Datastore()), + dht.BootstrapPeers(bspeers...), + dht.BucketSize(20)) if err != nil { return out, err } diff --git a/core/node/provider.go b/core/node/provider.go index 9f80afdb14f..e4e9fdf649b 100644 --- a/core/node/provider.go +++ b/core/node/provider.go @@ -64,6 +64,7 @@ func SimpleProviderSys(isOnline bool) interface{} { type provideMany interface { ProvideMany(ctx context.Context, keys []multihash.Multihash) error + Ready() bool } // BatchedProviderSys creates new provider system