Skip to content

Commit

Permalink
feat: send fallback message on failure
Browse files Browse the repository at this point in the history
  • Loading branch information
blombern committed Sep 5, 2023
1 parent 6cb72cc commit 9736973
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/phoenix/demotion_monitor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,10 @@ pub async fn run_demotion_monitor(relay_pool: &PgPool, mev_pool: &PgPool) -> Res

if let Err(error) = alert::send_telegram_alert(&message).await {
error!(?error, ?message, "failed to send telegram alert");
alert::send_telegram_alert(
"there were builder demotions, but the telegram alert failed",
)
.await?;
}
}

Expand Down

0 comments on commit 9736973

Please sign in to comment.