From a3812d8c5f299e27248377376a435d1de5d94d87 Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Wed, 11 Oct 2023 00:52:58 -0700 Subject: [PATCH] sleep before first config reload --- web3_proxy_cli/src/sub_commands/proxyd.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/web3_proxy_cli/src/sub_commands/proxyd.rs b/web3_proxy_cli/src/sub_commands/proxyd.rs index 85741147..579f57e7 100644 --- a/web3_proxy_cli/src/sub_commands/proxyd.rs +++ b/web3_proxy_cli/src/sub_commands/proxyd.rs @@ -107,6 +107,9 @@ impl ProxydSubCommand { // TODO: move this to a helper function thread::spawn(move || loop { + // give the app some time to start before changing configs for the first time + thread::sleep(Duration::from_secs(60)); + match fs::read_to_string(&top_config_path) { Ok(new_top_config) => { match toml::from_str::(&new_top_config) {