From c2710858e142d2ab1d1d34c7ed80092dbbdac2f9 Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Fri, 14 Apr 2023 00:41:51 -0700 Subject: [PATCH] only warn if rpc_configs is too short --- web3_proxy/src/rpcs/many.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/web3_proxy/src/rpcs/many.rs b/web3_proxy/src/rpcs/many.rs index 229c60ed..539e21dc 100644 --- a/web3_proxy/src/rpcs/many.rs +++ b/web3_proxy/src/rpcs/many.rs @@ -211,11 +211,14 @@ impl Web3Rpcs { ) -> anyhow::Result<()> { // safety checks if rpc_configs.len() < app.config.min_synced_rpcs { - return Err(anyhow::anyhow!( + // TODO: don't count disabled servers! + // TODO: include if this is balanced, private, or 4337 + warn!( "Only {}/{} rpcs! Add more rpcs or reduce min_synced_rpcs.", rpc_configs.len(), app.config.min_synced_rpcs - )); + ); + return Ok(()); } // safety check on sum soft limit