mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-10-01 12:20:39 +00:00
Fix timer wheel tests
This commit is contained in:
parent
5c9daad88b
commit
5f9185ef4c
@ -230,12 +230,11 @@ impl<T> TimerWheel<T> {
|
||||
(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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user