From 975a9e68f690f3b0c6c2b3009ce0bab1adecc0cf Mon Sep 17 00:00:00 2001 From: Dev Kalra Date: Fri, 10 May 2024 22:05:55 +0530 Subject: [PATCH] set poll interval to 2 s (#1562) --- apps/fortuna/Cargo.lock | 2 +- apps/fortuna/Cargo.toml | 2 +- apps/fortuna/src/keeper.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/fortuna/Cargo.lock b/apps/fortuna/Cargo.lock index 813d6d0ab..8ebbcda42 100644 --- a/apps/fortuna/Cargo.lock +++ b/apps/fortuna/Cargo.lock @@ -1488,7 +1488,7 @@ dependencies = [ [[package]] name = "fortuna" -version = "5.2.2" +version = "5.2.3" dependencies = [ "anyhow", "axum", diff --git a/apps/fortuna/Cargo.toml b/apps/fortuna/Cargo.toml index cc64abea8..688e5bc97 100644 --- a/apps/fortuna/Cargo.toml +++ b/apps/fortuna/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "fortuna" -version = "5.2.2" +version = "5.2.3" edition = "2021" [dependencies] diff --git a/apps/fortuna/src/keeper.rs b/apps/fortuna/src/keeper.rs index 0bbc0fd28..b4e6c2a55 100644 --- a/apps/fortuna/src/keeper.rs +++ b/apps/fortuna/src/keeper.rs @@ -55,7 +55,7 @@ const BACKLOG_RANGE: u64 = 1000; /// How many blocks to fetch events for in a single rpc call const BLOCK_BATCH_SIZE: u64 = 100; /// How much to wait before polling the next latest block -const POLL_INTERVAL: Duration = Duration::from_secs(5); +const POLL_INTERVAL: Duration = Duration::from_secs(2); /// Get the latest safe block number for the chain. Retry internally if there is an error.