Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ikrivosheev committed Jan 13, 2024
1 parent 03a428d commit 69f904c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tonic/src/transport/service/tls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ use crate::transport::{
server::{Connected, TlsStream},
Certificate, Identity,
};
use hyper_util::rt::TokioIo;
use std::{fmt, sync::Arc};
use tokio::io::{AsyncRead, AsyncWrite};
use tokio_rustls::{
Expand Down Expand Up @@ -83,7 +84,7 @@ impl TlsConnector {
_ => return Err(TlsError::H2NotNegotiated.into()),
};

BoxedIo::new(io)
BoxedIo::new(TokioIo::new(io))
};

Ok(tls_io)
Expand Down

0 comments on commit 69f904c

Please sign in to comment.