1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-06-26 15:07:42 +02:00

awc: Minimize futures dependencies

This commit is contained in:
Yuki Okushi
2020-05-18 11:46:57 +09:00
parent 24372467d9
commit d7abbff3b0
9 changed files with 12 additions and 11 deletions

View File

@ -4,8 +4,8 @@ use actix_codec::Framed;
use actix_http::{body::BodySize, h1, ws, Error, HttpService, Request, Response};
use actix_http_test::test_server;
use bytes::Bytes;
use futures::future::ok;
use futures::{SinkExt, StreamExt};
use futures_util::future::ok;
use futures_util::{SinkExt, StreamExt};
async fn ws_service(req: ws::Frame) -> Result<ws::Message, io::Error> {
match req {