Skip to content

Commit

Permalink
Merge pull request #8314 from filecoin-project/jen/indexsetting
Browse files Browse the repository at this point in the history
feat: config: enable indexer providing by default
  • Loading branch information
jennijuju authored Mar 15, 2022
2 parents c98ef0a + 6240729 commit ada499e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion documentation/en/default-lotus-miner-config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion node/config/def.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ func DefaultStorageMiner() *StorageMiner {
},

IndexProvider: IndexProviderConfig{
Enable: false,
Enable: true,
EntriesCacheCapacity: 1024,
EntriesChunkSize: 16384,
TopicName: "/indexer/ingest/mainnet",
Expand Down
2 changes: 1 addition & 1 deletion node/config/def_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

0 comments on commit ada499e

Please sign in to comment.