remove stale comments

This commit is contained in:
Bryan Stitt 2023-05-12 22:22:21 -07:00
parent 3cea4c3123
commit 914c3e03a8

View File

@ -236,14 +236,11 @@ impl Web3Rpc {
}
pub fn peak_ewma(&self) -> OrderedFloat<f64> {
// 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)
}