mirror of
https://github.com/fafhrd91/actix-net
synced 2025-06-27 01:37:42 +02:00
revert IntoFuture change
This commit is contained in:
@ -33,7 +33,8 @@ ssl = ["openssl", "tokio-openssl"]
|
||||
rust-tls = ["rustls", "tokio-rustls", "webpki", "webpki-roots"]
|
||||
|
||||
[dependencies]
|
||||
actix-service = "0.3.2"
|
||||
#actix-service = "0.3.2"
|
||||
actix-service = { path="../actix-service" }
|
||||
actix-rt = "0.1.0"
|
||||
|
||||
log = "0.4"
|
||||
|
@ -2,7 +2,7 @@ use std::collections::HashMap;
|
||||
use std::{fmt, io, net};
|
||||
|
||||
use actix_service::{IntoNewService, NewService};
|
||||
use futures::future::{join_all, Future, IntoFuture};
|
||||
use futures::future::{join_all, Future};
|
||||
use log::error;
|
||||
use tokio_tcp::TcpStream;
|
||||
|
||||
@ -223,7 +223,6 @@ where
|
||||
Box::new(
|
||||
self.inner
|
||||
.new_service(&())
|
||||
.into_future()
|
||||
.map_err(|_| ())
|
||||
.map(|s| {
|
||||
let service: BoxedServerService = Box::new(StreamService::new(s));
|
||||
|
@ -3,7 +3,7 @@ use std::time::Duration;
|
||||
|
||||
use actix_rt::spawn;
|
||||
use actix_service::{NewService, Service};
|
||||
use futures::future::{err, ok, FutureResult, IntoFuture};
|
||||
use futures::future::{err, ok, FutureResult};
|
||||
use futures::{Future, Poll};
|
||||
use log::error;
|
||||
use tokio_reactor::Handle;
|
||||
@ -129,7 +129,6 @@ where
|
||||
self.inner
|
||||
.create()
|
||||
.new_service(&())
|
||||
.into_future()
|
||||
.map_err(|_| ())
|
||||
.map(move |inner| {
|
||||
let service: BoxedServerService = Box::new(StreamService::new(inner));
|
||||
|
Reference in New Issue
Block a user