From 1af3cf85da44f8c7fbe96aa9e6995a0712b12e1d Mon Sep 17 00:00:00 2001 From: Jonathan Strong Date: Wed, 14 Feb 2018 18:23:06 -0500 Subject: [PATCH] sets HistLog event loop to block on recv() --- src/hist.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hist.rs b/src/hist.rs index 8087631..0751dd4 100644 --- a/src/hist.rs +++ b/src/hist.rs @@ -112,7 +112,7 @@ impl HistLog { .unwrap(); loop { - match rx.try_recv() { //.recv_timeout(Duration::from_millis(1)) { + match rx.recv() { //.recv_timeout(Duration::from_millis(1)) { //match rx.recv_timeout(Duration::new(1, 0)) { Ok(Some(Entry { tag, start, end, hist })) => { wtr.write_histogram(&hist, start.duration_since(UNIX_EPOCH).unwrap(),