From 2902ec0b9d3450408d3117ce2aa16cbcfcc1195f Mon Sep 17 00:00:00 2001 From: Farber98 Date: Mon, 2 Dec 2024 00:02:22 -0300 Subject: [PATCH] remove unused ctx --- pkg/solana/txm/txm.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/solana/txm/txm.go b/pkg/solana/txm/txm.go index 77c354771..b70e9973d 100644 --- a/pkg/solana/txm/txm.go +++ b/pkg/solana/txm/txm.go @@ -485,7 +485,7 @@ func (txm *Txm) processConfirmations(ctx context.Context, client client.ReaderWr } // check if a potential re-org has occurred for this sig and handle it - err := txm.handleReorg(ctx, sig, status) + err := txm.handleReorg(sig, status) if err != nil { continue } @@ -533,7 +533,7 @@ func (txm *Txm) handleErrorSignatureStatus(sig solanaGo.Signature, status *rpc.S // handleReorg handles the case where a transaction signature is in a potential reorg state on-chain. // It updates the transaction state in the local memory and restarts the retry/bumping cycle for the transaction associated to that sig. -func (txm *Txm) handleReorg(ctx context.Context, sig solanaGo.Signature, status *rpc.SignatureStatusesResult) error { +func (txm *Txm) handleReorg(sig solanaGo.Signature, status *rpc.SignatureStatusesResult) error { // Retrieve last seen status for the tx associated to this sig in our in-memory layer. txInfo, err := txm.txs.GetSignatureInfo(sig) if err != nil {