1
0
mirror of https://github.com/fafhrd91/actix-net synced 2025-06-29 16:14:58 +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

@ -6,7 +6,7 @@ use std::{
task::{Context, Poll},
};
pub use rustls::Session;
pub use tokio_rustls::rustls::Session;
pub use tokio_rustls::{client::TlsStream, rustls::ClientConfig};
pub use webpki_roots::TLS_SERVER_ROOTS;
@ -15,7 +15,7 @@ use actix_service::{Service, ServiceFactory};
use futures_core::{future::LocalBoxFuture, ready};
use log::trace;
use tokio_rustls::{Connect, TlsConnector};
use webpki::DNSNameRef;
use tokio_rustls::webpki::DNSNameRef;
use crate::connect::{Address, Connection};