From b6f952b0362b66e538c088355507445ed8fa8d65 Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Tue, 12 Mar 2019 16:49:57 -0700 Subject: [PATCH] remove constraint --- actix-server/src/builder.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/actix-server/src/builder.rs b/actix-server/src/builder.rs index 6fa2e9ce..99f2754f 100644 --- a/actix-server/src/builder.rs +++ b/actix-server/src/builder.rs @@ -2,7 +2,6 @@ use std::time::Duration; use std::{io, mem, net}; use actix_rt::{spawn, Arbiter, System}; -use actix_service::NewService; use futures::future::{lazy, ok}; use futures::stream::futures_unordered; use futures::sync::mpsc::{unbounded, UnboundedReceiver}; @@ -10,7 +9,6 @@ use futures::{Async, Future, Poll, Stream}; use log::{error, info}; use net2::TcpBuilder; use num_cpus; -use tokio_tcp::TcpStream; use tokio_timer::sleep; use crate::accept::{AcceptLoop, AcceptNotify, Command}; @@ -19,7 +17,7 @@ use crate::service_config::{ConfiguredService, ServiceConfig}; use crate::services::{InternalServiceFactory, ServiceFactory, StreamNewService}; use crate::signals::{Signal, Signals}; use crate::worker::{self, Worker, WorkerAvailability, WorkerClient}; -use crate::{ssl, Io, ServerConfig, Token}; +use crate::{ssl, Token}; /// Server builder pub struct ServerBuilder { @@ -166,7 +164,6 @@ impl ServerBuilder { pub fn bind>(mut self, name: N, addr: U, factory: F) -> io::Result where F: ServiceFactory, - F::NewService: NewService>, U: net::ToSocketAddrs, { let sockets = bind_addr(addr, self.backlog)?;