Skip to content

Commit c6b0c0c

Browse files
committed
fix
1 parent d753d31 commit c6b0c0c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/message_pool/msgpool/msg_pool.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ where
559559
loop {
560560
match subscriber.recv().await {
561561
Ok(HeadChanges { reverts, applies }) => {
562-
head_change(
562+
if let Err(e) = head_change(
563563
api.as_ref(),
564564
bls_sig_cache.as_ref(),
565565
repub_trigger.clone(),
@@ -570,10 +570,12 @@ where
570570
applies,
571571
)
572572
.await
573-
.context("Error changing head")?;
573+
{
574+
tracing::warn!("Error changing head: {e}");
575+
}
574576
}
575577
Err(RecvError::Lagged(e)) => {
576-
warn!("Head change subscriber lagged: skipping {} events", e);
578+
warn!("Head change subscriber lagged: skipping {e} events");
577579
}
578580
Err(RecvError::Closed) => {
579581
break Ok(());

0 commit comments

Comments
 (0)