Remove indexer cache size

This commit is contained in:
Patrick O'Grady 2020-10-15 15:39:43 -07:00
parent c037fdefa2
commit f7fbba6e37
No known key found for this signature in database
GPG key ID: 8DE11C985C0C8D85
3 changed files with 4 additions and 6 deletions

View file

@ -160,7 +160,6 @@ func Initialize(
cancel context.CancelFunc,
config *configuration.Configuration,
client Client,
indexCacheSize int64,
) (*Indexer, error) {
localStore, err := storage.NewBadgerStorage(
ctx,

View file

@ -72,7 +72,7 @@ func TestIndexer_Pruning(t *testing.T) {
IndexerPath: newDir,
}
i, err := Initialize(ctx, cancel, cfg, mockClient, storage.TinyIndexCacheSize)
i, err := Initialize(ctx, cancel, cfg, mockClient)
assert.NoError(t, err)
// Waiting for bitcoind...
@ -232,7 +232,7 @@ func TestIndexer_Transactions(t *testing.T) {
IndexerPath: newDir,
}
i, err := Initialize(ctx, cancel, cfg, mockClient, storage.TinyIndexCacheSize)
i, err := Initialize(ctx, cancel, cfg, mockClient)
assert.NoError(t, err)
// Sync to 1000
@ -450,7 +450,7 @@ func TestIndexer_Reorg(t *testing.T) {
IndexerPath: newDir,
}
i, err := Initialize(ctx, cancel, cfg, mockClient, storage.TinyIndexCacheSize)
i, err := Initialize(ctx, cancel, cfg, mockClient)
assert.NoError(t, err)
// Sync to 1000
@ -692,7 +692,7 @@ func TestIndexer_HeaderReorg(t *testing.T) {
IndexerPath: newDir,
}
i, err := Initialize(ctx, cancel, cfg, mockClient, storage.TinyIndexCacheSize)
i, err := Initialize(ctx, cancel, cfg, mockClient)
assert.NoError(t, err)
// Sync to 1000

View file

@ -95,7 +95,6 @@ func startOnlineDependencies(
cancel,
cfg,
client,
indexer.DefaultIndexCacheSize,
)
if err != nil {
return nil, nil, fmt.Errorf("%w: unable to initialize indexer", err)