Skip to content

Commit

Permalink
simplify error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
eduard-cl committed Dec 19, 2024
1 parent 1a4e1b5 commit 109c137
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core/chains/evm/txm/txm.go
Original file line number Diff line number Diff line change
Expand Up @@ -358,8 +358,7 @@ func (t *Txm) sendTransactionWithError(ctx context.Context, tx *types.Transactio
}

t.metrics.IncrementNumBroadcastedTxs(ctx)
err = t.metrics.EmitTxMessage(ctx, attempt.Hash, address, tx.ToAddress, *tx.Nonce)
if err != nil {
if err = t.metrics.EmitTxMessage(ctx, attempt.Hash, address, tx.ToAddress, *tx.Nonce); err != nil {
t.lggr.Errorw("Beholder error emitting tx message", "err", err)
}

Expand Down

0 comments on commit 109c137

Please sign in to comment.