From 413ee63b45f7d4ad522fdac3280e0e5fb4617abd Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Wed, 11 Oct 2023 04:20:59 -0700 Subject: [PATCH] give it 30 seconds to start --- web3_proxy_cli/src/sub_commands/proxyd.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/web3_proxy_cli/src/sub_commands/proxyd.rs b/web3_proxy_cli/src/sub_commands/proxyd.rs index 678199c1..9c1fc4e4 100644 --- a/web3_proxy_cli/src/sub_commands/proxyd.rs +++ b/web3_proxy_cli/src/sub_commands/proxyd.rs @@ -160,7 +160,10 @@ impl ProxydSubCommand { // give 30 seconds for the db to connect. if it does not connect, it will keep retrying } - info!("waiting for head block"); + info!("waiting 30 seconds for warm up"); + sleep(Duration::from_secs(30)).await; + + info!("waiting up to 30 more seconds for a head block"); let max_wait_until = Instant::now() + Duration::from_secs(30); loop { select! {