online editor isn't actually nice when it misses syntax errors :(
This commit is contained in:
parent
91acbcaf75
commit
ffb554d0b3
@ -511,13 +511,16 @@ impl Web3Rpcs {
|
||||
min_block_needed: Option<&U64>,
|
||||
max_block_needed: Option<&U64>,
|
||||
) -> Web3ProxyResult<OpenRequestResult> {
|
||||
let usable_rpcs_by_tier_and_head_number: BTreeMap<(u64, Reverse<Option<U64>>), Vec<Arc<Web3Rpc>>> = {
|
||||
let usable_rpcs_by_tier_and_head_number: BTreeMap<
|
||||
(u64, Reverse<Option<U64>>),
|
||||
Vec<Arc<Web3Rpc>>,
|
||||
> = {
|
||||
let mut m = BTreeMap::new();
|
||||
|
||||
if self.watch_consensus_head_sender.is_none() {
|
||||
// pick any server
|
||||
|
||||
let key = (0, Reverse<None>);
|
||||
let key = (0, Reverse(None));
|
||||
|
||||
for x in self.by_name.read().values() {
|
||||
if skip.contains(x) {
|
||||
@ -630,7 +633,7 @@ impl Web3Rpcs {
|
||||
}
|
||||
}
|
||||
|
||||
let key = (x.tier, Reverse<Some(*x_head_num)>);
|
||||
let key = (x.tier, Reverse(Some(*x_head_num)));
|
||||
|
||||
m.entry(key).or_insert_with(Vec::new).push(x);
|
||||
}
|
||||
@ -643,7 +646,7 @@ impl Web3Rpcs {
|
||||
|
||||
// the key doesn't matter if we are checking synced connections
|
||||
// they are all at the same block and it is already sized to what we need
|
||||
let key = (0, Reverse<None>);
|
||||
let key = (0, Reverse(None));
|
||||
|
||||
for x in synced_connections.best_rpcs.iter() {
|
||||
if skip.contains(x) {
|
||||
|
Loading…
Reference in New Issue
Block a user