Set index provider options based on lotus config

Always set index provider options based on the lotus configuration.
Otherwise, they will have no effect.
This commit is contained in:
Masih H. Derkani
2022-04-07 11:05:09 -04:00
committed by Jennifer Wang
parent 76c10807d6
commit 4043923e56
+4
View File
@@ -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())