Update actix-server-config to tokio 0.2

This commit is contained in:
Martell Malone 2019-11-27 21:25:55 -08:00
parent 5cb5fdf499
commit 939bcfd012
2 changed files with 4 additions and 4 deletions

View File

@ -23,7 +23,7 @@ rustls = ["tokio-rustls"]
[dependencies]
actix-codec = "0.2.0-alpha.1"
tokio-net = { version = "=0.2.0-alpha.6", features = ["tcp", "uds"] }
tokio-openssl = { version = "0.4.0-alpha.6", optional = true }
tokio = { version = "0.2", features = ["net", "uds"] }
tokio-openssl = { version = "0.4.0", optional = true }
#tokio-rustls = { version = "0.12.0-alpha.8", optional = true }
tokio-rustls = { git = "https://github.com/quininer/tokio-rustls.git", branch = "tokio-0.2", optional = true }

View File

@ -6,7 +6,7 @@ use std::rc::Rc;
use std::{fmt, io, net, ops, time};
use actix_codec::{AsyncRead, AsyncWrite};
use tokio_net::tcp::TcpStream;
use tokio::net::TcpStream;
#[derive(Debug, Clone)]
pub struct ServerConfig {
@ -226,7 +226,7 @@ impl<T: IoStream + Unpin> IoStream for tokio_rustls::server::TlsStream<T> {
}
#[cfg(unix)]
impl IoStream for tokio_net::uds::UnixStream {
impl IoStream for tokio::net::UnixStream {
#[inline]
fn peer_addr(&self) -> Option<net::SocketAddr> {
None