From b88307f875ab336e7e9841a020864668ddef8ab2 Mon Sep 17 00:00:00 2001 From: "Masih H. Derkani" Date: Wed, 6 Apr 2022 14:05:02 +0100 Subject: [PATCH] Set index provider options based on lotus config Always set index provider options based on the lotus configuration. Otherwise, they will have no effect. --- node/modules/storageminer_idxprov.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/node/modules/storageminer_idxprov.go b/node/modules/storageminer_idxprov.go index 23c718048..2c656193d 100644 --- a/node/modules/storageminer_idxprov.go +++ b/node/modules/storageminer_idxprov.go @@ -30,6 +30,10 @@ func IndexProvider(cfg config.IndexProviderConfig) func(params IdxProv, marketHo engine.WithDatastore(ipds), engine.WithHost(marketHost), engine.WithRetrievalAddrs(marketHost.Addrs()...), + engine.WithEntriesCacheCapacity(cfg.EntriesCacheCapacity), + engine.WithEntriesChunkSize(cfg.EntriesChunkSize), + engine.WithTopicName(cfg.TopicName), + engine.WithPurgeCacheOnStart(cfg.PurgeCacheOnStart), } llog := log.With("idxProvEnabled", cfg.Enable, "pid", marketHost.ID(), "retAddrs", marketHost.Addrs())