From 249ad884fc80d4324f1903acb362252c33cce940 Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Thu, 5 Oct 2023 20:28:22 -0700 Subject: [PATCH] only send to 3 servers --- web3_proxy/src/app/mod.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/web3_proxy/src/app/mod.rs b/web3_proxy/src/app/mod.rs index 506c8c63..eccfe487 100644 --- a/web3_proxy/src/app/mod.rs +++ b/web3_proxy/src/app/mod.rs @@ -1365,13 +1365,15 @@ impl Web3ProxyApp { // TODO: timeout // TODO: change this to send serially until we get a success + // TODO: validate params. we seem to get a lot of spam here of "0x" + let mut result = self .balanced_rpcs .try_send_all_synced_connections::( web3_request, Some(Duration::from_secs(30)), Some(crate::rpcs::request::RequestErrorHandler::DebugLevel), - None, + Some(3), ) .await; @@ -1398,7 +1400,7 @@ impl Web3ProxyApp { web3_request, Some(Duration::from_secs(30)), Some(crate::rpcs::request::RequestErrorHandler::DebugLevel), - None, + Some(3), ) .await; }