From 6df5cd550546e932cbc01e0ecc92aef643851a34 Mon Sep 17 00:00:00 2001 From: "E. Almqvist" Date: Fri, 12 Aug 2022 19:48:04 +0200 Subject: [PATCH] More refactor & debug stuff --- src/scanner.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/scanner.rs b/src/scanner.rs index e5b89a8..2964f4b 100644 --- a/src/scanner.rs +++ b/src/scanner.rs @@ -59,7 +59,7 @@ fn create_scan_worker( } } -fn create_scan_workers( +fn get_scan_workers_results( from: u32, to: u32, target_port: u16, @@ -110,9 +110,9 @@ pub fn start_scan( num_threads: u32, ignorelist: Option>, ) { - let threads = create_scan_workers(from, to, target_port, num_threads, ignorelist); + let scan_results = get_scan_workers_results(from, to, target_port, num_threads, ignorelist); - threads.iter().for_each(|t| { - println!("{t:?}"); + scan_results.iter().for_each(|r| { + println!("{r:?}"); }); }