From f73fd66b8962d01c3f8f91e7404f0a89c836b936 Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Thu, 12 Oct 2023 16:25:26 -0700 Subject: [PATCH] dont sleep at start that was a gross fix anyways --- web3_proxy/src/app/mod.rs | 1 + web3_proxy_cli/src/sub_commands/proxyd.rs | 5 +---- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/web3_proxy/src/app/mod.rs b/web3_proxy/src/app/mod.rs index 8202ce32..ab87101b 100644 --- a/web3_proxy/src/app/mod.rs +++ b/web3_proxy/src/app/mod.rs @@ -585,6 +585,7 @@ impl App { } } + // TODO: add a min time between config changes yield_now().await; } diff --git a/web3_proxy_cli/src/sub_commands/proxyd.rs b/web3_proxy_cli/src/sub_commands/proxyd.rs index c3512a19..269a0d83 100644 --- a/web3_proxy_cli/src/sub_commands/proxyd.rs +++ b/web3_proxy_cli/src/sub_commands/proxyd.rs @@ -161,10 +161,7 @@ impl ProxydSubCommand { // give 30 seconds for the db to connect. if it does not connect, it will keep retrying } - info!("waiting 30 seconds for warm up"); - sleep(Duration::from_secs(30)).await; - - info!("waiting up to 30 more seconds for a head block"); + info!("waiting up to 30 seconds for a head block"); let max_wait_until = Instant::now() + Duration::from_secs(30); loop { select! {