use actix_server::TestServer

This commit is contained in:
fakeshadow 2020-12-30 04:35:52 +08:00
parent 70349569ab
commit 8204a0ef9b
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ use super::{IntoServiceFactory, ServiceFactory};
///
/// Note that this function consumes the receiving service factory and returns
/// a wrapped version of it.
pub fn map_config<I, SF, S, Req, F, Cfg>(factory: I, f: F) -> MapConfig<SF, Req, F, Cfg>
pub fn map_config<I, SF, Req, F, Cfg>(factory: I, f: F) -> MapConfig<SF, Req, F, Cfg>
where
I: IntoServiceFactory<SF, Req>,
SF: ServiceFactory<Req>,

View File

@ -3,7 +3,7 @@ use std::io;
use actix_codec::{BytesCodec, Framed};
use actix_rt::net::TcpStream;
use actix_service::{fn_service, Service, ServiceFactory};
use actix_testing::TestServer;
use actix_server::TestServer;
use bytes::Bytes;
use futures_util::sink::SinkExt;