mirror of
https://github.com/actix/actix-web.git
synced 2024-12-22 16:16:40 +00:00
fix tokio-tls IoStream impl
This commit is contained in:
parent
810995ade0
commit
8dfc34e785
1 changed files with 4 additions and 1 deletions
|
@ -24,7 +24,7 @@ use tokio_openssl::SslConnectorExt;
|
||||||
#[cfg(all(feature = "tls", not(feature = "alpn")))]
|
#[cfg(all(feature = "tls", not(feature = "alpn")))]
|
||||||
use native_tls::{Error as TlsError, TlsConnector as NativeTlsConnector};
|
use native_tls::{Error as TlsError, TlsConnector as NativeTlsConnector};
|
||||||
#[cfg(all(feature = "tls", not(feature = "alpn")))]
|
#[cfg(all(feature = "tls", not(feature = "alpn")))]
|
||||||
use tokio_tls::{TlsConnector, TlsStream};
|
use tokio_tls::{TlsConnector};
|
||||||
|
|
||||||
#[cfg(
|
#[cfg(
|
||||||
all(
|
all(
|
||||||
|
@ -1343,6 +1343,9 @@ impl AsyncWrite for Connection {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(feature = "tls")]
|
||||||
|
use tokio_tls::{TlsStream};
|
||||||
|
|
||||||
#[cfg(feature = "tls")]
|
#[cfg(feature = "tls")]
|
||||||
/// This is temp solution untile actix-net migration
|
/// This is temp solution untile actix-net migration
|
||||||
impl<Io: IoStream> IoStream for TlsStream<Io> {
|
impl<Io: IoStream> IoStream for TlsStream<Io> {
|
||||||
|
|
Loading…
Reference in a new issue