cargo fmt fixups

This commit is contained in:
Rob Walker
2018-08-03 11:27:44 -07:00
committed by Michael Vines
parent 3e36e6dcf8
commit f2b1a04bca
8 changed files with 55 additions and 28 deletions

View File

@@ -263,7 +263,8 @@ fn test_external_liveness_table() {
c4.write().unwrap().insert(&c1_data);
c4.write().unwrap().set_leader(c1_data.id);
for _ in 0..30 {
done = c1.read()
done = c1
.read()
.unwrap()
.get_external_liveness_entry(&c4_id)
.is_none();

View File

@@ -393,14 +393,16 @@ fn test_multi_node_dynamic_network() {
logger::setup();
let key = "SOLANA_DYNAMIC_NODES";
let num_nodes: usize = match env::var(key) {
Ok(val) => val.parse()
Ok(val) => val
.parse()
.expect(&format!("env var {} is not parse-able as usize", key)),
Err(_) => 60,
};
let purge_key = "SOLANA_DYNAMIC_NODES_PURGE_LAG";
let purge_lag: usize = match env::var(purge_key) {
Ok(val) => val.parse()
Ok(val) => val
.parse()
.expect(&format!("env var {} is not parse-able as usize", purge_key)),
Err(_) => std::usize::MAX,
};