Skip to content

Commit

Permalink
chore: Log why block stream was restarted
Browse files Browse the repository at this point in the history
  • Loading branch information
morgsmccauley committed Jul 18, 2024
1 parent ee5845b commit 9bb710d
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions coordinator/src/handlers/block_streams.rs
Original file line number Diff line number Diff line change
Expand Up @@ -254,13 +254,17 @@ impl BlockStreamsHandler {

if !stale && !stalled {
return Ok(());
} else {
tracing::info!(stale, stalled, "Restarting stalled block stream");
}
} else {
tracing::info!("Restarting stalled block stream");
}

tracing::info!("Restarting stalled block stream");

self.stop(block_stream.stream_id.clone()).await?;
self.resume_block_stream(config).await?;

let height = self.get_continuation_block_height(config).await?;
self.start(height, config).await?;

Ok(())
}
Expand Down

0 comments on commit 9bb710d

Please sign in to comment.