Merge pull request #8314 from filecoin-project/jen/indexsetting
feat: config: enable indexer providing by default
This commit is contained in:
commit
ada499ef14
@ -277,7 +277,7 @@
|
|||||||
#
|
#
|
||||||
# type: bool
|
# type: bool
|
||||||
# env var: LOTUS_INDEXPROVIDER_ENABLE
|
# env var: LOTUS_INDEXPROVIDER_ENABLE
|
||||||
#Enable = false
|
#Enable = true
|
||||||
|
|
||||||
# EntriesCacheCapacity sets the maximum capacity to use for caching the indexing advertisement
|
# EntriesCacheCapacity sets the maximum capacity to use for caching the indexing advertisement
|
||||||
# entries. Defaults to 1024 if not specified. The cache is evicted using LRU policy. The
|
# entries. Defaults to 1024 if not specified. The cache is evicted using LRU policy. The
|
||||||
|
@ -189,7 +189,7 @@ func DefaultStorageMiner() *StorageMiner {
|
|||||||
},
|
},
|
||||||
|
|
||||||
IndexProvider: IndexProviderConfig{
|
IndexProvider: IndexProviderConfig{
|
||||||
Enable: false,
|
Enable: true,
|
||||||
EntriesCacheCapacity: 1024,
|
EntriesCacheCapacity: 1024,
|
||||||
EntriesChunkSize: 16384,
|
EntriesChunkSize: 16384,
|
||||||
TopicName: "/indexer/ingest/mainnet",
|
TopicName: "/indexer/ingest/mainnet",
|
||||||
|
@ -73,6 +73,6 @@ func TestDefaultMinerRoundtrip(t *testing.T) {
|
|||||||
|
|
||||||
func TestDefaultStorageMiner_SetsIndexIngestTopic(t *testing.T) {
|
func TestDefaultStorageMiner_SetsIndexIngestTopic(t *testing.T) {
|
||||||
subject := DefaultStorageMiner()
|
subject := DefaultStorageMiner()
|
||||||
require.False(t, subject.IndexProvider.Enable)
|
require.True(t, subject.IndexProvider.Enable)
|
||||||
require.Equal(t, "/indexer/ingest/mainnet", subject.IndexProvider.TopicName)
|
require.Equal(t, "/indexer/ingest/mainnet", subject.IndexProvider.TopicName)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user