Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
kobayurii committed Oct 11, 2024
1 parent e69687d commit a121f62
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rpc-server/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -234,9 +234,9 @@ async fn task_update_optimistic_block_regularly(
async fn task_optimistic_block_status() {
tracing::info!("Task to check optimistic block status started");
loop {
// check every 2 seconds
tokio::time::sleep(std::time::Duration::from_secs(2)).await;
// check every second
tokio::time::sleep(std::time::Duration::from_secs(1)).await;

// When an optimistic block is not updated, or it is lower than the final block
// we need to mark that optimistic updating is not working
if crate::metrics::LATEST_BLOCK_HEIGHT_BY_FINALITIY
Expand Down

0 comments on commit a121f62

Please sign in to comment.