Skip to content

Commit

Permalink
Merge pull request #93 from holaplex/abdul/log-err
Browse files Browse the repository at this point in the history
Log error for failed send transaction rpc call when retrying
  • Loading branch information
imabdulbasit authored Oct 19, 2023
2 parents 3d8e4dc + 8fd4fc5 commit 4eb9235
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 4eb9235

Please sign in to comment.