This commit is contained in:
Michael Vines
2020-08-01 08:44:32 -07:00
committed by mergify[bot]
parent 01262cda3f
commit eefcf484cb
9 changed files with 20 additions and 46 deletions

View File

@ -780,7 +780,7 @@ impl ClusterInfo {
.crds
.table
.values()
.filter_map(|x| x.value.snapshot_hash().map(|v| v))
.filter_map(|x| x.value.snapshot_hash())
.filter_map(|x| {
for (table_slot, hash) in &x.hashes {
if *table_slot == slot {

View File

@ -160,7 +160,6 @@ pub fn get_multi_client(nodes: &[ContactInfo]) -> (ThinClient, usize) {
let addrs: Vec<_> = nodes
.iter()
.filter_map(ContactInfo::valid_client_facing_addr)
.map(|addrs| addrs)
.collect();
let rpc_addrs: Vec<_> = addrs.iter().map(|addr| addr.0).collect();
let tpu_addrs: Vec<_> = addrs.iter().map(|addr| addr.1).collect();

View File

@ -202,7 +202,7 @@ fn run_simulation(stakes: &[u64], fanout: usize) {
#[test]
#[serial]
fn test_retransmit_small() {
let stakes: Vec<_> = (0..200).map(|i| i).collect();
let stakes: Vec<_> = (0..200).collect();
run_simulation(&stakes, 200);
}
@ -211,7 +211,7 @@ fn test_retransmit_small() {
#[serial]
fn test_retransmit_medium() {
let num_nodes = 2000;
let stakes: Vec<_> = (0..num_nodes).map(|i| i).collect();
let stakes: Vec<_> = (0..num_nodes).collect();
run_simulation(&stakes, 200);
}
@ -229,6 +229,6 @@ fn test_retransmit_medium_equal_stakes() {
#[serial]
fn test_retransmit_large() {
let num_nodes = 4000;
let stakes: Vec<_> = (0..num_nodes).map(|i| i).collect();
let stakes: Vec<_> = (0..num_nodes).collect();
run_simulation(&stakes, 2);
}