From 0d04b3d455d086c1048f472303ab2185ea24a035 Mon Sep 17 00:00:00 2001 From: Ian Shim <100327837+ian-shim@users.noreply.github.com> Date: Mon, 12 Feb 2024 11:48:41 -0800 Subject: [PATCH] fix: update txn manager failure log (#254) --- disperser/batcher/txn_manager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/disperser/batcher/txn_manager.go b/disperser/batcher/txn_manager.go index 217ef8d3d8..13c67cde6d 100644 --- a/disperser/batcher/txn_manager.go +++ b/disperser/batcher/txn_manager.go @@ -193,8 +193,8 @@ func (t *txnManager) monitorTransaction(ctx context.Context, req *TxnRequest) (* err = t.ethClient.SendTransaction(ctx, newTx) if err != nil { t.logger.Error("[TxnManager] failed to send txn", "tag", req.Tag, "txn", req.Tx.Hash().Hex(), "attempt", retryFromFailure, "maxRetry", maxSpeedUpRetry, "err", err) - t.metrics.IncrementTxnCount("failure") if retryFromFailure >= maxSpeedUpRetry { + t.metrics.IncrementTxnCount("failure") return nil, err } retryFromFailure++