From 715e96119a3f33e5901b16919b16cb3b3fe7bfa1 Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Wed, 1 Nov 2023 22:34:23 -0700 Subject: [PATCH] comments --- web3_proxy/src/rpcs/one.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web3_proxy/src/rpcs/one.rs b/web3_proxy/src/rpcs/one.rs index 4263866d..af025807 100644 --- a/web3_proxy/src/rpcs/one.rs +++ b/web3_proxy/src/rpcs/one.rs @@ -265,8 +265,8 @@ impl Web3Rpc { /// sort by... /// - rate limit (ascending) /// - backups last - /// - tier (ascending) /// - block number (descending) + /// - tier (ascending) /// TODO: tests on this! /// TODO: should tier or block number take priority? /// TODO: should this return a struct that implements sorting traits? @@ -308,7 +308,7 @@ impl Web3Rpc { ) -> ((Instant, bool, Reverse, u32), Duration) { let sort_on = self.sort_on(max_block, start_instant); - // // TODO: once we do power-of-2 choices, put median_latency back + // // TODO: once we do power-of-2 choices, use median_latency here instead of weighted_latency. though its already part of tiers so maybe its fine // let median_latency = self // .median_latency // .as_ref()