Skip to content

Commit

Permalink
chore(server): Remove unnecessary bound from TlsAcceptor::accept (#1799)
Browse files Browse the repository at this point in the history
  • Loading branch information
tottoto authored Jul 15, 2024
1 parent 539d6f7 commit b6ad603
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tonic/src/transport/server/service/tls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ impl TlsAcceptor {

pub(crate) async fn accept<IO>(&self, io: IO) -> Result<TlsStream<IO>, crate::Error>
where
IO: AsyncRead + AsyncWrite + Unpin + Send + 'static,
IO: AsyncRead + AsyncWrite + Unpin,
{
let acceptor = RustlsAcceptor::from(self.inner.clone());
acceptor.accept(io).await.map_err(Into::into)
Expand Down

0 comments on commit b6ad603

Please sign in to comment.