mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-09-06 00:00:10 +02:00
Fix timer wheel tests
This commit is contained in:
+3
-4
@@ -230,12 +230,11 @@ impl<T> TimerWheel<T> {
|
|||||||
(Some(a), Some(b)) => Some(cmp::min(a, b)),
|
(Some(a), Some(b)) => Some(cmp::min(a, b)),
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
let time = min.map(|min| min + Duration::from_millis(TICK_MS / 2));
|
if let Some(min) = min {
|
||||||
if let Some(time) = time {
|
debug!("next timeout {:?}", min);
|
||||||
debug!("next timeout {:?}", time);
|
|
||||||
debug!("now {:?}", Instant::now());
|
debug!("now {:?}", Instant::now());
|
||||||
}
|
}
|
||||||
return time
|
return min
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Cancels the specified timeout.
|
/// Cancels the specified timeout.
|
||||||
|
|||||||
Reference in New Issue
Block a user