Skip to content

Commit

Permalink
feat(transport): Add Connected impl for DuplexStream (#722)
Browse files Browse the repository at this point in the history
  • Loading branch information
LucioFranco committed Jul 13, 2021
1 parent 6ee638d commit 0e33a02
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tonic/src/transport/server/conn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<T> Connected for TlsStream<T>
where
Expand Down

0 comments on commit 0e33a02

Please sign in to comment.