diff --git a/src/main.rs b/src/main.rs index ad6a5ba..22e3d7a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -44,24 +44,24 @@ fn main() -> Result<()> { match p.response { Some(response) => { for peer in response.peers { - crawl(peer.key, &config, &mut ygg, &mut key, &mut tcp, &mut udp)?; + crawl(peer.key, &config, &mut ygg, &mut key, &mut tcp, &mut udp)? } } None => println!("node has no peers to connect."), } println!("operation completed!"); if !key.is_empty() { - println!("\tkeys crawled: {}", key.len()); + println!("\tkeys crawled: {}", key.len()) } if let Some(tcp) = tcp { println!("\tTCP: {}", tcp.len()); println!("\t\tfound: {}", tcp.values().filter(|v| **v).count()); - println!("\t\ttotal: {}", tcp.len()); + println!("\t\ttotal: {}", tcp.len()) } if let Some((udp, _)) = udp { println!("\tUDP: {}", udp.len()); println!("\t\tfound: {}", udp.values().filter(|v| **v).count()); - println!("\t\ttotal: {}", udp.len()); + println!("\t\ttotal: {}", udp.len()) } Ok(()) } @@ -117,7 +117,7 @@ fn crawl( if let Some(l) = config.latency { std::thread::sleep(Duration::from_secs(l)) } - crawl(k, config, ygg, key, tcp, udp)?; + crawl(k, config, ygg, key, tcp, udp)? } } }