From: Matt Corallo Date: Sun, 2 Jun 2019 14:28:27 +0000 (-0400) Subject: Print scan set len on new scan set X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=fa44fd6c5494d91c3aea82ac33e4af7c08bd87bc;p=dnsseed-rust Print scan set len on new scan set --- diff --git a/src/main.rs b/src/main.rs index 0f6b931..8b49782 100644 --- a/src/main.rs +++ b/src/main.rs @@ -211,9 +211,11 @@ fn poll_dnsseeds() { fn scan_net() { tokio::spawn(future::lazy(|| { + let printer = unsafe { PRINTER.as_ref().unwrap() }; let store = unsafe { DATA_STORE.as_ref().unwrap() }; let mut scan_nodes = store.get_next_scan_nodes(); + printer.add_line(format!("Got {} addresses to scan", scan_nodes.len()), false); let per_iter_time = Duration::from_millis(1000 / store.get_u64(U64Setting::ConnsPerSec)); let start_time = Instant::now(); let mut iter_time = start_time;