Skip to content

Commit e1db44e

Browse files
committed
chore(router): Use upstream poll_ready to implement service
1 parent b77e0eb commit e1db44e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tonic/src/service/router.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,8 @@ where
150150
type Future = RoutesFuture;
151151

152152
#[inline]
153-
fn poll_ready(&mut self, _: &mut Context<'_>) -> Poll<Result<(), Self::Error>> {
154-
Poll::Ready(Ok(()))
153+
fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>> {
154+
Service::<Request<B>>::poll_ready(&mut self.router, cx).map_err(|e| match e {})
155155
}
156156

157157
fn call(&mut self, req: Request<B>) -> Self::Future {

0 commit comments

Comments
 (0)