mirror of
https://github.com/fafhrd91/actix-net
synced 2025-08-30 23:30:19 +02:00
add Connector helper method
This commit is contained in:
@@ -2,7 +2,7 @@ use std::collections::VecDeque;
|
||||
use std::io;
|
||||
use std::net::SocketAddr;
|
||||
|
||||
use futures::{Async, Future, Poll, future::ok};
|
||||
use futures::{future::ok, Async, Future, Poll};
|
||||
use tokio;
|
||||
use tokio_tcp::{ConnectFuture, TcpStream};
|
||||
use tower_service::Service;
|
||||
@@ -48,7 +48,7 @@ impl Connector {
|
||||
Connector { resolver }
|
||||
}
|
||||
|
||||
pub fn new_service<E>() -> impl Future<Item=Connector, Error=E> {
|
||||
pub fn new_service<E>() -> impl Future<Item = Connector, Error = E> {
|
||||
ok(Connector::new())
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user