diff --git a/tonic/src/transport/service/connector.rs b/tonic/src/transport/service/connector.rs index c7a9f3c37..6f1177dea 100644 --- a/tonic/src/transport/service/connector.rs +++ b/tonic/src/transport/service/connector.rs @@ -53,7 +53,7 @@ where Pin> + Send + 'static>>; fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll> { - MakeConnection::poll_ready(self, cx).map_err(Into::into) + MakeConnection::poll_ready(&mut self.inner, cx).map_err(Into::into) } fn call(&mut self, uri: Uri) -> Self::Future {