From 03c167f6eb27296d3b4574a5a37f850f588751e2 Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Tue, 17 Oct 2023 10:05:35 -0700 Subject: [PATCH] todos --- web3_proxy/src/rpcs/many.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web3_proxy/src/rpcs/many.rs b/web3_proxy/src/rpcs/many.rs index b7d7fa89..9fc914b0 100644 --- a/web3_proxy/src/rpcs/many.rs +++ b/web3_proxy/src/rpcs/many.rs @@ -475,6 +475,7 @@ impl Web3Rpcs { match active_request_handle.request::().await { Ok(response) => { + // TODO: some jsonrpc errors should probably be retried. maybe save in errors return Ok(response); } Err(error) => { @@ -486,6 +487,7 @@ impl Web3Rpcs { } } + // TODO: find the most common error if let Some(err) = errors.into_iter().next() { return Err(err); }