Skip to content

Commit

Permalink
Increase timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
darunrs committed Jul 31, 2024
1 parent 73d1fdd commit 94da5e0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion block-streamer/src/block_stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ impl BlockStream {
redis.get_last_processed_block(&config).await.unwrap();

loop {
tokio::time::sleep(std::time::Duration::from_secs(15)).await;
tokio::time::sleep(std::time::Duration::from_secs(120)).await;

let new_last_processed_block =
if let Ok(block) = redis.get_last_processed_block(&config).await {
Expand Down
6 changes: 5 additions & 1 deletion coordinator/src/handlers/block_streams.rs
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,11 @@ impl BlockStreamsHandler {
if !stale && !stalled {
return Ok(());
} else {
tracing::info!(stale, stalled, "Restarting stalled block stream");
tracing::info!(
stale,
stalled,
"Restarting stalled block stream after {RESTART_TIMEOUT_SECONDS} seconds"
);
}
} else {
tracing::info!(
Expand Down

0 comments on commit 94da5e0

Please sign in to comment.