Remove indexer cache size
This commit is contained in:
parent
c037fdefa2
commit
f7fbba6e37
3 changed files with 4 additions and 6 deletions
|
@ -160,7 +160,6 @@ func Initialize(
|
|||
cancel context.CancelFunc,
|
||||
config *configuration.Configuration,
|
||||
client Client,
|
||||
indexCacheSize int64,
|
||||
) (*Indexer, error) {
|
||||
localStore, err := storage.NewBadgerStorage(
|
||||
ctx,
|
||||
|
|
|
@ -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
|
||||
|
|
1
main.go
1
main.go
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue