1
0
mirror of https://github.com/fafhrd91/actix-net synced 2025-06-29 20:44:59 +02:00

use reexported tls crates when possible

This commit is contained in:
Rob Ede
2021-02-04 15:22:38 +00:00
parent b5399c5631
commit c918da906b
6 changed files with 8 additions and 17 deletions

View File

@ -5,7 +5,7 @@ use actix_service::{Service, ServiceFactory};
use actix_utils::counter::Counter;
use futures_core::future::LocalBoxFuture;
pub use native_tls::Error;
pub use tokio_native_tls::native_tls::Error;
pub use tokio_native_tls::{TlsAcceptor, TlsStream};
use super::MAX_CONN_COUNTER;

View File

@ -12,7 +12,7 @@ use actix_utils::counter::{Counter, CounterGuard};
use futures_core::future::LocalBoxFuture;
use tokio_rustls::{Accept, TlsAcceptor};
pub use rustls::{ServerConfig, Session};
pub use tokio_rustls::rustls::{ServerConfig, Session};
pub use tokio_rustls::server::TlsStream;
use super::MAX_CONN_COUNTER;