From 08436591f6458ecfade7c4eea66b490207d97e58 Mon Sep 17 00:00:00 2001 From: yggverse Date: Sat, 16 Aug 2025 19:16:20 +0300 Subject: [PATCH] cleanup --- src/main.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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)? } } }