From 08e03f19c964c18ef8d4b9be0b5e0e404078065e Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Thu, 23 Nov 2023 00:34:47 -0400 Subject: [PATCH] remove unnecessary yield_now --- web3_proxy/src/rpcs/one.rs | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/web3_proxy/src/rpcs/one.rs b/web3_proxy/src/rpcs/one.rs index 66fb9287..e6d1a030 100644 --- a/web3_proxy/src/rpcs/one.rs +++ b/web3_proxy/src/rpcs/one.rs @@ -430,8 +430,6 @@ impl Web3Rpc { } limit = Some(block_data_limit); - - yield_now().await; } if let Some(limit) = limit { @@ -606,16 +604,6 @@ impl Web3Rpc { // we are synced! yey! - // TODO: checking this every time seems excessive - if self.block_data_limit() == U64::zero() { - if let Err(err) = self.check_block_data_limit().await { - warn!( - "failed checking block limit after {} finished syncing. {:?}", - self, err - ); - } - } - Some(new_head_block) } }