Skip to content

Commit b8c9603

Browse files
committed
fmt
1 parent ab408ff commit b8c9603

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

rpc-server/src/utils.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -234,9 +234,9 @@ async fn task_update_optimistic_block_regularly(
234234
async fn task_optimistic_block_status() {
235235
tracing::info!("Task to check optimistic block status started");
236236
loop {
237-
// check every 2 seconds
238-
tokio::time::sleep(std::time::Duration::from_secs(2)).await;
239-
237+
// check every second
238+
tokio::time::sleep(std::time::Duration::from_secs(1)).await;
239+
240240
// When an optimistic block is not updated, or it is lower than the final block
241241
// we need to mark that optimistic updating is not working
242242
if crate::metrics::LATEST_BLOCK_HEIGHT_BY_FINALITIY

0 commit comments

Comments
 (0)