From 914c3e03a8275028e66666c51fa617cf0a064691 Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Fri, 12 May 2023 22:22:21 -0700 Subject: [PATCH] remove stale comments --- web3_proxy/src/rpcs/one.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/web3_proxy/src/rpcs/one.rs b/web3_proxy/src/rpcs/one.rs index 597263cd..416055a8 100644 --- a/web3_proxy/src/rpcs/one.rs +++ b/web3_proxy/src/rpcs/one.rs @@ -236,14 +236,11 @@ impl Web3Rpc { } pub fn peak_ewma(&self) -> OrderedFloat { - // TODO: use request instead of head latency? that was killing perf though let peak_latency = self.peak_latency.as_ref().unwrap().latency().as_secs_f64(); // TODO: what ordering? let active_requests = self.active_requests.load(atomic::Ordering::Relaxed) as f64 + 1.0; - // TODO: i'm not sure head * active is exactly right. but we'll see - // TODO: i don't think this actually counts as peak. investigate with atomics.rs and peak_ewma.rs OrderedFloat(peak_latency * active_requests) }