Skip to content

Commit

Permalink
update txn manager failure log
Browse files Browse the repository at this point in the history
  • Loading branch information
ian-shim committed Feb 12, 2024
1 parent 9aaa171 commit c8a72f8
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 c8a72f8

Please sign in to comment.