diff options
Diffstat (limited to 'tokio/src/stream/timeout.rs')
-rw-r--r-- | tokio/src/stream/timeout.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tokio/src/stream/timeout.rs b/tokio/src/stream/timeout.rs index 669973ff..61154da0 100644 --- a/tokio/src/stream/timeout.rs +++ b/tokio/src/stream/timeout.rs @@ -23,7 +23,7 @@ pin_project! { impl<S: Stream> Timeout<S> { pub(super) fn new(stream: S, duration: Duration) -> Self { let next = Instant::now() + duration; - let deadline = Sleep::new_timeout(next, duration); + let deadline = Sleep::new_timeout(next); Timeout { stream: Fuse::new(stream), |