diff --git a/services/horizon/internal/ingest/processor_runner.go b/services/horizon/internal/ingest/processor_runner.go index 2f46aa0471..cff8960c1d 100644 --- a/services/horizon/internal/ingest/processor_runner.go +++ b/services/horizon/internal/ingest/processor_runner.go @@ -109,7 +109,6 @@ func (s *ProcessorRunner) DisableMemoryStatsLogging() { func buildChangeProcessor( historyQ history.IngestionQ, - session db.SessionInterface, changeStats *ingest.StatsChangeProcessor, source ingestionSource, ledgerSequence uint32, @@ -240,7 +239,6 @@ func (s *ProcessorRunner) RunHistoryArchiveIngestion( changeStats := ingest.StatsChangeProcessor{} changeProcessor := buildChangeProcessor( s.historyQ, - s.session, &changeStats, historyArchiveSource, checkpointLedger, @@ -406,7 +404,6 @@ func (s *ProcessorRunner) RunAllProcessorsOnLedger(ledger xdr.LedgerCloseMeta) ( groupChangeProcessors := buildChangeProcessor( s.historyQ, - s.session, &changeStatsProcessor, ledgerSource, ledger.LedgerSequence(), diff --git a/services/horizon/internal/ingest/processor_runner_test.go b/services/horizon/internal/ingest/processor_runner_test.go index edcdd8d97c..63b8caa161 100644 --- a/services/horizon/internal/ingest/processor_runner_test.go +++ b/services/horizon/internal/ingest/processor_runner_test.go @@ -235,7 +235,7 @@ func TestProcessorRunnerBuildChangeProcessor(t *testing.T) { } stats := &ingest.StatsChangeProcessor{} - processor := buildChangeProcessor(runner.historyQ, &db.MockSession{}, stats, ledgerSource, 123, "") + processor := buildChangeProcessor(runner.historyQ, stats, ledgerSource, 123, "") assert.IsType(t, &groupChangeProcessors{}, processor) assert.IsType(t, &statsChangeProcessor{}, processor.processors[0]) @@ -256,7 +256,7 @@ func TestProcessorRunnerBuildChangeProcessor(t *testing.T) { filters: &MockFilters{}, } - processor = buildChangeProcessor(runner.historyQ, &db.MockSession{}, stats, historyArchiveSource, 456, "") + processor = buildChangeProcessor(runner.historyQ, stats, historyArchiveSource, 456, "") assert.IsType(t, &groupChangeProcessors{}, processor) assert.IsType(t, &statsChangeProcessor{}, processor.processors[0]) diff --git a/services/horizon/internal/ingest/processors/claimable_balances_change_processor_test.go b/services/horizon/internal/ingest/processors/claimable_balances_change_processor_test.go index 2a340434f5..524de095f7 100644 --- a/services/horizon/internal/ingest/processors/claimable_balances_change_processor_test.go +++ b/services/horizon/internal/ingest/processors/claimable_balances_change_processor_test.go @@ -10,7 +10,6 @@ import ( "github.com/stellar/go/ingest" "github.com/stellar/go/services/horizon/internal/db2/history" - "github.com/stellar/go/support/db" "github.com/stellar/go/xdr" "github.com/stretchr/testify/suite" ) @@ -26,7 +25,6 @@ type ClaimableBalancesChangeProcessorTestSuiteState struct { mockQ *history.MockQClaimableBalances mockClaimantsBatchInsertBuilder *history.MockClaimableBalanceClaimantBatchInsertBuilder mockClaimableBalanceBatchInsertBuilder *history.MockClaimableBalanceBatchInsertBuilder - session db.SessionInterface } func (s *ClaimableBalancesChangeProcessorTestSuiteState) SetupTest() { @@ -125,7 +123,6 @@ type ClaimableBalancesChangeProcessorTestSuiteLedger struct { mockQ *history.MockQClaimableBalances mockClaimantsBatchInsertBuilder *history.MockClaimableBalanceClaimantBatchInsertBuilder mockClaimableBalanceBatchInsertBuilder *history.MockClaimableBalanceBatchInsertBuilder - session db.SessionInterface } func (s *ClaimableBalancesChangeProcessorTestSuiteLedger) SetupTest() { diff --git a/services/horizon/internal/ingest/verify_test.go b/services/horizon/internal/ingest/verify_test.go index 2d213f2a0e..1fbb6b8f8c 100644 --- a/services/horizon/internal/ingest/verify_test.go +++ b/services/horizon/internal/ingest/verify_test.go @@ -274,7 +274,7 @@ func TestStateVerifierLockBusy(t *testing.T) { tt.Assert.NoError(q.BeginTx(tt.Ctx, &sql.TxOptions{})) checkpointLedger := uint32(63) - changeProcessor := buildChangeProcessor(q, q, &ingest.StatsChangeProcessor{}, ledgerSource, checkpointLedger, "") + changeProcessor := buildChangeProcessor(q, &ingest.StatsChangeProcessor{}, ledgerSource, checkpointLedger, "") gen := randxdr.NewGenerator() var changes []xdr.LedgerEntryChange @@ -331,7 +331,7 @@ func TestStateVerifier(t *testing.T) { tt.Assert.NoError(q.BeginTx(tt.Ctx, &sql.TxOptions{})) checkpointLedger := uint32(63) - changeProcessor := buildChangeProcessor(q, q, &ingest.StatsChangeProcessor{}, ledgerSource, checkpointLedger, "") + changeProcessor := buildChangeProcessor(q, &ingest.StatsChangeProcessor{}, ledgerSource, checkpointLedger, "") mockChangeReader := &ingest.MockChangeReader{} gen := randxdr.NewGenerator()