]> git.bitcoin.ninja Git - dnsseed-rust/commitdiff
Print scan set len on new scan set
authorMatt Corallo <git@bluematt.me>
Sun, 2 Jun 2019 14:28:27 +0000 (10:28 -0400)
committerMatt Corallo <git@bluematt.me>
Sun, 2 Jun 2019 14:30:25 +0000 (10:30 -0400)
src/main.rs

index 0f6b931c5057127e7668d4d2730a0da5d9df3b92..8b49782a29b3cf220af245010611a1a3b2419be4 100644 (file)
@@ -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;