diff --git a/tonic/src/transport/server/conn.rs b/tonic/src/transport/server/conn.rs index ea304865b..40d60b232 100644 --- a/tonic/src/transport/server/conn.rs +++ b/tonic/src/transport/server/conn.rs @@ -98,6 +98,12 @@ impl Connected for TcpStream { } } +impl Connected for tokio::io::DuplexStream { + type ConnectInfo = (); + + fn connect_info(&self) -> Self::ConnectInfo {} +} + #[cfg(feature = "tls")] impl Connected for TlsStream where