From 69f904c1a4bbfa5670ada0159c3b3575398beff0 Mon Sep 17 00:00:00 2001 From: Ivan Krivosheev Date: Sat, 13 Jan 2024 17:55:28 +0300 Subject: [PATCH] Fixes --- tonic/src/transport/service/tls.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tonic/src/transport/service/tls.rs b/tonic/src/transport/service/tls.rs index f956132fb..add4be892 100644 --- a/tonic/src/transport/service/tls.rs +++ b/tonic/src/transport/service/tls.rs @@ -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::{ @@ -83,7 +84,7 @@ impl TlsConnector { _ => return Err(TlsError::H2NotNegotiated.into()), }; - BoxedIo::new(io) + BoxedIo::new(TokioIo::new(io)) }; Ok(tls_io)