From d7d3e2bcfaca4bd9272267da8d38eb1443f2b593 Mon Sep 17 00:00:00 2001 From: guillaumemichel Date: Tue, 24 Jun 2025 14:21:30 +0200 Subject: [PATCH] restore boxo KeyChanFunc --- core/node/reprovider.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/node/reprovider.go b/core/node/reprovider.go index 8d5ffe9f4..d5d14fa77 100644 --- a/core/node/reprovider.go +++ b/core/node/reprovider.go @@ -4,6 +4,7 @@ import ( "context" "time" + provider "github.com/ipfs/boxo/provider" "github.com/ipfs/go-cid" "github.com/ipfs/kubo/config" "github.com/ipfs/kubo/repo" @@ -29,7 +30,7 @@ func (r *NoopReprovider) InstantProvide(context.Context, ...mh.Multihash) error func (r *NoopReprovider) ForceProvide(context.Context, ...mh.Multihash) error { return nil } func Reprovider(cfg *config.Config) fx.Option { - mhStore := fx.Provide(func(keyProvider rds.KeyChanFunc, repo repo.Repo) (*rds.MHStore, error) { + mhStore := fx.Provide(func(keyProvider provider.KeyChanFunc, repo repo.Repo) (*rds.MHStore, error) { return rds.NewMHStore(context.Background(), repo.Datastore(), rds.WithPrefixLen(10), rds.WithDatastorePrefix("/reprovider/mhs"),