Merge pull request #8314 from filecoin-project/jen/indexsetting

feat: config: enable indexer providing by default
This commit is contained in:
Jiaying Wang 2022-03-15 19:33:49 -04:00 committed by GitHub
commit ada499ef14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -277,7 +277,7 @@
#
# type: bool
# env var: LOTUS_INDEXPROVIDER_ENABLE
#Enable = false
#Enable = true
# 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

View File

@ -189,7 +189,7 @@ func DefaultStorageMiner() *StorageMiner {
},
IndexProvider: IndexProviderConfig{
Enable: false,
Enable: true,
EntriesCacheCapacity: 1024,
EntriesChunkSize: 16384,
TopicName: "/indexer/ingest/mainnet",

View File

@ -73,6 +73,6 @@ func TestDefaultMinerRoundtrip(t *testing.T) {
func TestDefaultStorageMiner_SetsIndexIngestTopic(t *testing.T) {
subject := DefaultStorageMiner()
require.False(t, subject.IndexProvider.Enable)
require.True(t, subject.IndexProvider.Enable)
require.Equal(t, "/indexer/ingest/mainnet", subject.IndexProvider.TopicName)
}