From 05153e4884afa3606b75e562670371eef8b82bf8 Mon Sep 17 00:00:00 2001 From: Rob Walker Date: Wed, 1 Aug 2018 08:51:32 -0700 Subject: [PATCH] de-trace this function, new blob is not a dup --- src/streamer.rs | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/src/streamer.rs b/src/streamer.rs index 67da77f7ec..fbfc4209cd 100644 --- a/src/streamer.rs +++ b/src/streamer.rs @@ -355,24 +355,10 @@ fn process_blob( c_or_d: &str, ) -> bool { if let Some(old) = mem::replace(window_slot, Some(blob)) { - if old.read().unwrap().get_index().unwrap() == pix { - trace!( - "{:x}: duplicate {} blob at index {:}", - debug_id, - c_or_d, - pix - ); - } - trace!( - "{:x}: recycling {} blob at index {:}", - debug_id, - c_or_d, - pix - ); + let is_dup = old.read().unwrap().get_index().unwrap() == pix; recycler.recycle(old); - true + is_dup } else { - trace!("{:x}: empty {} window slot {:}", debug_id, c_or_d, pix); false } }