Skip to content

Commit

Permalink
break loop if dispatch fail
Browse files Browse the repository at this point in the history
  • Loading branch information
juan518munoz committed Nov 15, 2024
1 parent b11df04 commit c5bae2d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/node/da_dispatcher/src/da_dispatcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ impl DataAvailabilityDispatcher {
tracing::info!("Stop signal received, da_dispatcher is shutting down");
break;
}
if *shutdown_rx.borrow() {
tracing::error!("A blob dispatch failed, da_dispatcher is shutting down");
break;
}

let mut conn = self.pool.connection_tagged("da_dispatcher").await?;
let batches = conn
Expand Down

0 comments on commit c5bae2d

Please sign in to comment.