Skip to content

Commit

Permalink
error log for send transaction failure when retrying
Browse files Browse the repository at this point in the history
  • Loading branch information
imabdulbasit committed Oct 19, 2023
1 parent f427683 commit 8fd4fc5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions consumer/src/solana.rs
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,12 @@ impl Solana {
ClientErrorKind::TransactionError(_) | ClientErrorKind::SigningError(_)
)
})
.notify(|err: &ClientError, dur: Duration| {
error!(
"failed to send transaction retrying error {:?} in {:?}",
err, dur
);
})
.await
.map_err(|e| {
let msg = format!("failed to send transaction: {e}");
Expand Down

0 comments on commit 8fd4fc5

Please sign in to comment.