limit: fix rate limit not sleeping (#459)
This commit is contained in:
parent
01fe5e89bb
commit
dd423b41e1
|
@ -67,6 +67,7 @@ where
|
|||
State::Limited(ref mut sleep) => {
|
||||
if let Async::NotReady = sleep.poll()? {
|
||||
tracing::trace!("rate limited exceeded; sleeping.");
|
||||
return Ok(Async::NotReady);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue