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:
parent
8a16e1ca7d
commit
b88307f875
@ -30,6 +30,10 @@ func IndexProvider(cfg config.IndexProviderConfig) func(params IdxProv, marketHo
|
|||||||
engine.WithDatastore(ipds),
|
engine.WithDatastore(ipds),
|
||||||
engine.WithHost(marketHost),
|
engine.WithHost(marketHost),
|
||||||
engine.WithRetrievalAddrs(marketHost.Addrs()...),
|
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())
|
llog := log.With("idxProvEnabled", cfg.Enable, "pid", marketHost.ID(), "retAddrs", marketHost.Addrs())
|
||||||
|
Loading…
Reference in New Issue
Block a user