Formatting

This commit is contained in:
Jedrzej Stuczynski
2020-01-13 15:25:52 +00:00
parent c056485471
commit 0b1bae6ea1
2 changed files with 6 additions and 6 deletions
@@ -72,8 +72,8 @@ impl PathChecker {
fn unique_path_key(path: &Vec<SphinxNode>, iteration: u8) -> Vec<u8> {
std::iter::once(iteration)
.chain(
path.iter()
.map(|node| node.pub_key.to_bytes().to_vec())
path.iter()
.map(|node| node.pub_key.to_bytes().to_vec())
.flatten(),
)
.collect()
@@ -208,7 +208,7 @@ impl PathChecker {
&self.our_destination,
&delays,
)
.unwrap();
.unwrap();
debug!("sending test packet to {}", first_node_address);
match first_node_client.send(packet, first_node_address).await {
@@ -227,7 +227,7 @@ impl PathChecker {
.paths_status
.insert(path_identifier, PathStatus::Pending)
.is_some()
{
{
panic!("Overwriting path checks!")
}
}
@@ -42,9 +42,9 @@ impl NodeScore {
}
pub(crate) fn increase_received_packet_count(&mut self) {
self.packets_received += 1;
}
self.packets_received += 1;
}
}
impl std::fmt::Display for NodeScore {
fn fmt(&self, f: &mut Formatter) -> Result<(), std::fmt::Error> {