1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-08-22 05:35:08 +02:00

use general context impl

This commit is contained in:
Nikolay Kim
2018-01-06 22:59:39 -08:00
parent 247c23c1ea
commit 71da72efdb
4 changed files with 31 additions and 136 deletions

View File

@@ -556,12 +556,6 @@ impl<T, A, H, U> Handler<signal::Signal> for HttpServer<T, A, H, U>
}
}
impl<T, A, H, U> StreamHandler<io::Result<Conn<T>>> for HttpServer<T, A, H, U>
where T: IoStream,
H: HttpHandler + 'static,
U: 'static,
A: 'static {}
impl<T, A, H, U> Handler<io::Result<Conn<T>>> for HttpServer<T, A, H, U>
where T: IoStream,
H: HttpHandler + 'static,
@@ -682,7 +676,7 @@ impl<T, A, H, U> Handler<StopServer> for HttpServer<T, A, H, U>
if self.exit {
Arbiter::system().send(actix::msgs::SystemExit(0))
}
Self::empty()
Self::reply(Ok(()))
}
}
}