Big-bang update tokio, warp, futures, & hyper to new versions.
This commit is contained in:
parent
1273b4adff
commit
00ec517e78
12 changed files with 497 additions and 1076 deletions
src
|
@ -3,12 +3,13 @@ use std::task::{
|
|||
Context,
|
||||
Poll
|
||||
};
|
||||
use std::time::{Duration, Instant};
|
||||
|
||||
use futures3::prelude::*;
|
||||
use tokio2::timer::{
|
||||
delay,
|
||||
Delay
|
||||
use futures::prelude::*;
|
||||
use tokio::time::{
|
||||
delay_until,
|
||||
Delay,
|
||||
Duration,
|
||||
Instant,
|
||||
};
|
||||
|
||||
use crate::chunk::Chunk;
|
||||
|
@ -105,7 +106,7 @@ impl<S> Throttle<S> {
|
|||
Throttle {
|
||||
stream: wrap,
|
||||
start_time: now,
|
||||
sleep: delay(now)
|
||||
sleep: delay_until(now)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue