Skip to content

Commit

Permalink
fix: update txn manager failure log (#254)
Browse files Browse the repository at this point in the history
  • Loading branch information
ian-shim authored Feb 12, 2024
1 parent 9aaa171 commit 0d04b3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion disperser/batcher/txn_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -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++
Expand Down

0 comments on commit 0d04b3d

Please sign in to comment.