More consistent poll_ready usage

The `#[inline]`s probably aren't necessary but are consistent with other
parts of the code and tower in general.
This commit is contained in:
David Pedersen
2021-10-26 01:24:57 +02:00
parent e949c47df6
commit efdd197643
8 changed files with 42 additions and 9 deletions
+1
View File
@@ -62,6 +62,7 @@ where
type Error = Infallible;
type Future = super::future::IntoServiceFuture;
#[inline]
fn poll_ready(&mut self, _cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>> {
// `IntoService` can only be constructed from async functions which are always ready, or from
// `Layered` which bufferes in `<Layered as Handler>::call` and is therefore also always