limit: fix rate limit not sleeping (#459)

This commit is contained in:
Luke Steensen 2020-06-10 17:26:21 -05:00 committed by GitHub
parent 01fe5e89bb
commit dd423b41e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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);
}
}
}