From a68d0d60b7134346fb3d9f77f5bb005bbd4fff99 Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Fri, 21 Jul 2023 13:28:00 -0700 Subject: [PATCH] only health check if theres a block and rpc sender --- web3_proxy/src/rpcs/one.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web3_proxy/src/rpcs/one.rs b/web3_proxy/src/rpcs/one.rs index 8fbb88ab..5ab1de7b 100644 --- a/web3_proxy/src/rpcs/one.rs +++ b/web3_proxy/src/rpcs/one.rs @@ -678,10 +678,12 @@ impl Web3Rpc { }; futures.push(flatten_handle(tokio::spawn(f))); + } else { + unimplemented!("there should always be a disconnect watch!"); } // health check that runs if there haven't been any recent requests - { + if block_and_rpc_sender.is_some() { // TODO: move this into a proper function let rpc = self.clone();