From 2cf688cc68dad4789eca87e1a593b02d08853e28 Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Sat, 2 Sep 2023 10:38:26 -0700 Subject: [PATCH] fix one syntax error --- web3_proxy/src/app/mod.rs | 28 ++++++++++++++-------------- web3_proxy/src/rpcs/many.rs | 4 +++- 2 files changed, 17 insertions(+), 15 deletions(-) diff --git a/web3_proxy/src/app/mod.rs b/web3_proxy/src/app/mod.rs index 12ab305a..7fd94568 100644 --- a/web3_proxy/src/app/mod.rs +++ b/web3_proxy/src/app/mod.rs @@ -1340,20 +1340,20 @@ impl Web3ProxyApp { | "eth_supportedEntryPoints" | "web3_bundlerVersion") => match self.bundler_4337_rpcs.as_ref() { Some(bundler_4337_rpcs) => { - let x = bundler_4337_rpcs - .try_send_all_synced_connections::>( - method, - params, - Some(request_metadata), - None, - None, - Some(Duration::from_secs(30)), - Some(Level::DEBUG.into()), - Some(1), - ) - .await?; - - x.into() + // let x = bundler_4337_rpcs + // .try_send_all_synced_connections::>( + // method, + // params, + // Some(request_metadata), + // None, + // None, + // Some(Duration::from_secs(30)), + // Some(Level::DEBUG.into()), + // Some(1), + // ) + // .await?; + // x.into() + todo!("wip"); } None => { // TODO: stats even when we error! diff --git a/web3_proxy/src/rpcs/many.rs b/web3_proxy/src/rpcs/many.rs index d2f8a214..b78f0359 100644 --- a/web3_proxy/src/rpcs/many.rs +++ b/web3_proxy/src/rpcs/many.rs @@ -32,7 +32,7 @@ use std::sync::Arc; use tokio::select; use tokio::sync::{mpsc, watch}; use tokio::task::yield_now; -use tokio::time::{sleep, sleep_until, timeout, Duration, Instant}; +use tokio::time::{sleep_until, timeout, Duration, Instant}; use tracing::{debug, error, info, instrument, trace, warn}; /// A collection of web3 connections. Sends requests either the current best server or all servers. @@ -366,6 +366,8 @@ impl Web3Rpcs { .name("noop") .spawn(async move { futures::future::pending::<()>().await; + + Ok(()) })?; futures.push(flatten_handle(handle));