summaryrefslogtreecommitdiffstats
path: root/tokio/src/stream/throttle.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tokio/src/stream/throttle.rs')
-rw-r--r--tokio/src/stream/throttle.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tokio/src/stream/throttle.rs b/tokio/src/stream/throttle.rs
index 8f4a256d..ff1fbf01 100644
--- a/tokio/src/stream/throttle.rs
+++ b/tokio/src/stream/throttle.rs
@@ -17,7 +17,7 @@ where
let delay = if duration == Duration::from_millis(0) {
None
} else {
- Some(Sleep::new_timeout(Instant::now() + duration, duration))
+ Some(Sleep::new_timeout(Instant::now() + duration))
};
Throttle {