1
0
mirror of https://github.com/fafhrd91/actix-net synced 2025-06-28 11:00:36 +02:00

migrate to tokio 0.2.2

This commit is contained in:
Nikolay Kim
2019-12-05 16:40:24 +06:00
parent d49aca9595
commit 3a858feaec
37 changed files with 281 additions and 461 deletions

View File

@ -6,8 +6,8 @@ use actix_service::{service_fn, Service, ServiceFactory};
use actix_testing::TestServer;
use bytes::Bytes;
use futures::SinkExt;
use trust_dns_resolver::config::{ResolverConfig, ResolverOpts};
use actix_connect::resolver::{ResolverConfig, ResolverOpts};
use actix_connect::Connect;
#[cfg(feature = "openssl")]
@ -97,7 +97,7 @@ async fn test_new_service() {
#[cfg(feature = "openssl")]
#[actix_rt::test]
async fn test_uri() {
use http::HttpTryFrom;
use std::convert::TryFrom;
let srv = TestServer::with(|| {
service_fn(|io: TcpStream| {
@ -118,7 +118,7 @@ async fn test_uri() {
#[cfg(feature = "rustls")]
#[actix_rt::test]
async fn test_rustls_uri() {
use http::HttpTryFrom;
use std::convert::TryFrom;
let srv = TestServer::with(|| {
service_fn(|io: TcpStream| {