diff options
Diffstat (limited to 'tokio/src/time')
-rw-r--r-- | tokio/src/time/wheel/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tokio/src/time/wheel/mod.rs b/tokio/src/time/wheel/mod.rs index c5f0f458..a2ef27fc 100644 --- a/tokio/src/time/wheel/mod.rs +++ b/tokio/src/time/wheel/mod.rs @@ -43,7 +43,7 @@ pub(crate) struct Wheel<T> { const NUM_LEVELS: usize = 6; /// The maximum duration of a delay -const MAX_DURATION: u64 = 1 << (6 * NUM_LEVELS); +const MAX_DURATION: u64 = (1 << (6 * NUM_LEVELS)) - 1; #[derive(Debug)] pub(crate) enum InsertError { |