From 5f9185ef4c5d17b8431a367d2ea8325307f44904 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Wed, 3 Aug 2016 23:38:32 -0700 Subject: [PATCH] Fix timer wheel tests --- src/timer_wheel.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/timer_wheel.rs b/src/timer_wheel.rs index 37f49f811..6f909460d 100644 --- a/src/timer_wheel.rs +++ b/src/timer_wheel.rs @@ -230,12 +230,11 @@ impl TimerWheel { (Some(a), Some(b)) => Some(cmp::min(a, b)), } }); - let time = min.map(|min| min + Duration::from_millis(TICK_MS / 2)); - if let Some(time) = time { - debug!("next timeout {:?}", time); + if let Some(min) = min { + debug!("next timeout {:?}", min); debug!("now {:?}", Instant::now()); } - return time + return min } /// Cancels the specified timeout.