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,
|
cancel context.CancelFunc,
|
||||||
config *configuration.Configuration,
|
config *configuration.Configuration,
|
||||||
client Client,
|
client Client,
|
||||||
indexCacheSize int64,
|
|
||||||
) (*Indexer, error) {
|
) (*Indexer, error) {
|
||||||
localStore, err := storage.NewBadgerStorage(
|
localStore, err := storage.NewBadgerStorage(
|
||||||
ctx,
|
ctx,
|
||||||
|
|
|
@ -72,7 +72,7 @@ func TestIndexer_Pruning(t *testing.T) {
|
||||||
IndexerPath: newDir,
|
IndexerPath: newDir,
|
||||||
}
|
}
|
||||||
|
|
||||||
i, err := Initialize(ctx, cancel, cfg, mockClient, storage.TinyIndexCacheSize)
|
i, err := Initialize(ctx, cancel, cfg, mockClient)
|
||||||
assert.NoError(t, err)
|
assert.NoError(t, err)
|
||||||
|
|
||||||
// Waiting for bitcoind...
|
// Waiting for bitcoind...
|
||||||
|
@ -232,7 +232,7 @@ func TestIndexer_Transactions(t *testing.T) {
|
||||||
IndexerPath: newDir,
|
IndexerPath: newDir,
|
||||||
}
|
}
|
||||||
|
|
||||||
i, err := Initialize(ctx, cancel, cfg, mockClient, storage.TinyIndexCacheSize)
|
i, err := Initialize(ctx, cancel, cfg, mockClient)
|
||||||
assert.NoError(t, err)
|
assert.NoError(t, err)
|
||||||
|
|
||||||
// Sync to 1000
|
// Sync to 1000
|
||||||
|
@ -450,7 +450,7 @@ func TestIndexer_Reorg(t *testing.T) {
|
||||||
IndexerPath: newDir,
|
IndexerPath: newDir,
|
||||||
}
|
}
|
||||||
|
|
||||||
i, err := Initialize(ctx, cancel, cfg, mockClient, storage.TinyIndexCacheSize)
|
i, err := Initialize(ctx, cancel, cfg, mockClient)
|
||||||
assert.NoError(t, err)
|
assert.NoError(t, err)
|
||||||
|
|
||||||
// Sync to 1000
|
// Sync to 1000
|
||||||
|
@ -692,7 +692,7 @@ func TestIndexer_HeaderReorg(t *testing.T) {
|
||||||
IndexerPath: newDir,
|
IndexerPath: newDir,
|
||||||
}
|
}
|
||||||
|
|
||||||
i, err := Initialize(ctx, cancel, cfg, mockClient, storage.TinyIndexCacheSize)
|
i, err := Initialize(ctx, cancel, cfg, mockClient)
|
||||||
assert.NoError(t, err)
|
assert.NoError(t, err)
|
||||||
|
|
||||||
// Sync to 1000
|
// Sync to 1000
|
||||||
|
|
1
main.go
1
main.go
|
@ -95,7 +95,6 @@ func startOnlineDependencies(
|
||||||
cancel,
|
cancel,
|
||||||
cfg,
|
cfg,
|
||||||
client,
|
client,
|
||||||
indexer.DefaultIndexCacheSize,
|
|
||||||
)
|
)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, nil, fmt.Errorf("%w: unable to initialize indexer", err)
|
return nil, nil, fmt.Errorf("%w: unable to initialize indexer", err)
|
||||||
|
|
Loading…
Add table
Reference in a new issue