Skip to content

Commit

Permalink
print error msg on notifier
Browse files Browse the repository at this point in the history
  • Loading branch information
ecioppettini committed Jun 8, 2021
1 parent 621ed51 commit 44efd96
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions jormungandr/src/blockchain/process.rs
Original file line number Diff line number Diff line change
Expand Up @@ -461,13 +461,14 @@ async fn process_leadership_block(
// Track block as new new tip block
stats_counter.set_tip_block(Arc::new(block.clone()));

if notifier_msg_box
if let Err(err) = notifier_msg_box
.send(NotifierMsg::NewBlock(block.clone()))
.await
.is_err()
{
// TODO: add an error type?
tracing::error!("Cannot propagate block to blockchain event notifier");
tracing::error!(
"Cannot propagate block to blockchain event notifier: {}",
err
)
}

if let Some(mut msg_box) = explorer_msg_box {
Expand Down

0 comments on commit 44efd96

Please sign in to comment.