From 40a230bc5ddc29e7ec9974f91968022fdec2c056 Mon Sep 17 00:00:00 2001 From: Urvi Date: Tue, 7 Nov 2023 12:22:17 -0800 Subject: [PATCH] Fix linter warnings --- services/horizon/internal/ingest/processor_runner.go | 3 --- .../processors/claimable_balances_change_processor_test.go | 3 --- 2 files changed, 6 deletions(-) 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/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() {