Skip to content

Commit 90a500b

Browse files
authored
chore(server): Remove unnecessary await service ready (#2258)
1 parent 09a8c07 commit 90a500b

File tree

1 file changed

+1
-5
lines changed
  • tonic/src/transport/server

1 file changed

+1
-5
lines changed

tonic/src/transport/server/mod.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ use hyper::{body::Incoming, service::Service as HyperService};
5252
use pin_project::pin_project;
5353
use std::{
5454
fmt,
55-
future::{self, poll_fn, Future},
55+
future::{self, Future},
5656
marker::PhantomData,
5757
net::SocketAddr,
5858
pin::{pin, Pin},
@@ -725,10 +725,6 @@ impl<L> Server<L> {
725725

726726
trace!("connection accepted");
727727

728-
poll_fn(|cx| svc.poll_ready(cx))
729-
.await
730-
.map_err(super::Error::from_source)?;
731-
732728
let req_svc = svc
733729
.call(&io)
734730
.await

0 commit comments

Comments
 (0)