cargo fmt
This commit is contained in:
@@ -176,8 +176,7 @@ pub fn crdt_retransmit() -> result::Result<()> {
|
||||
s.set_read_timeout(Some(Duration::new(1, 0))).unwrap();
|
||||
let res = s.recv_from(&mut b.data);
|
||||
res.is_err() //true if failed to receive the retransmit packet
|
||||
})
|
||||
.collect();
|
||||
}).collect();
|
||||
//true if failed receive the retransmit packet, r2, and r3 should succeed
|
||||
//r1 was the sender, so it should fail to receive the packet
|
||||
assert_eq!(res, [true, false, false]);
|
||||
|
@@ -593,10 +593,8 @@ fn test_multi_node_dynamic_network() {
|
||||
assert_eq!(bal, Some(500));
|
||||
info!("sent balance to[{}/{}] {}", n, num_nodes, keypair.pubkey());
|
||||
keypair
|
||||
})
|
||||
.unwrap()
|
||||
})
|
||||
.collect();
|
||||
}).unwrap()
|
||||
}).collect();
|
||||
|
||||
info!("Waiting for keypairs to be created");
|
||||
let keypairs: Vec<_> = t1.into_iter().map(|t| t.join().unwrap()).collect();
|
||||
@@ -622,10 +620,8 @@ fn test_multi_node_dynamic_network() {
|
||||
true,
|
||||
);
|
||||
(rd, val)
|
||||
})
|
||||
.unwrap()
|
||||
})
|
||||
.collect();
|
||||
}).unwrap()
|
||||
}).collect();
|
||||
|
||||
let mut validators: Vec<_> = t2.into_iter().map(|t| t.join().unwrap()).collect();
|
||||
|
||||
@@ -645,8 +641,7 @@ fn test_multi_node_dynamic_network() {
|
||||
&alice_arc.read().unwrap().keypair(),
|
||||
bob_pubkey,
|
||||
&last_id,
|
||||
)
|
||||
.unwrap();
|
||||
).unwrap();
|
||||
|
||||
expected_balance += 500;
|
||||
|
||||
|
Reference in New Issue
Block a user