From c7881ecd7c5fd1fdc71c8722a6b37f5996cc529e Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Mon, 12 Jun 2023 17:55:23 -0700 Subject: [PATCH] add min max_latency --- web3_proxy/src/rpcs/consensus.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web3_proxy/src/rpcs/consensus.rs b/web3_proxy/src/rpcs/consensus.rs index ff9d2073..4d20691b 100644 --- a/web3_proxy/src/rpcs/consensus.rs +++ b/web3_proxy/src/rpcs/consensus.rs @@ -465,7 +465,7 @@ impl ConsensusFinder { // // histogram requires high to be at least 2 x low // // using min_latency for low does not work how we want it though - // max_latency = max_latency.max(2 * min_latency); + max_latency = max_latency.max(1000); // create the histogram let mut hist = Histogram::::new_with_bounds(1, max_latency, 3).unwrap();