1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-12-30 12:00:38 +00:00

fix openssl NewService definition

This commit is contained in:
Nikolay Kim 2018-09-08 12:58:08 -07:00
parent c2eff62efb
commit 4264574af1

View file

@ -1,4 +1,3 @@
use std::io;
use std::marker::PhantomData; use std::marker::PhantomData;
use futures::{future::ok, future::FutureResult, Async, Future, Poll}; use futures::{future::ok, future::FutureResult, Async, Future, Poll};
@ -44,7 +43,7 @@ impl<T: AsyncRead + AsyncWrite> NewService for OpensslAcceptor<T> {
type Error = Error; type Error = Error;
type Service = OpensslAcceptorService<T>; type Service = OpensslAcceptorService<T>;
type InitError = (); type InitError = ();
type Future = FutureResult<Self::Service, io::Error>; type Future = FutureResult<Self::Service, Self::InitError>;
fn new_service(&self) -> Self::Future { fn new_service(&self) -> Self::Future {
MAX_CONN_COUNTER.with(|conns| { MAX_CONN_COUNTER.with(|conns| {