1
0
mirror of https://github.com/fafhrd91/actix-net synced 2024-11-27 21:22:57 +01:00

service response is not important

This commit is contained in:
Nikolay Kim 2019-03-12 13:55:31 -07:00
parent 2c1f8f0b96
commit b3366bc1af

View File

@ -173,7 +173,7 @@ impl ServiceRuntime {
pub fn service<T, F>(&mut self, name: &str, service: F) pub fn service<T, F>(&mut self, name: &str, service: F)
where where
F: IntoNewService<T>, F: IntoNewService<T>,
T: NewService<Request = Io<TcpStream>, Response = ()> + 'static, T: NewService<Request = Io<TcpStream>> + 'static,
T::Future: 'static, T::Future: 'static,
T::Service: 'static, T::Service: 'static,
T::InitError: fmt::Debug, T::InitError: fmt::Debug,
@ -183,7 +183,7 @@ impl ServiceRuntime {
self.services.insert( self.services.insert(
token.clone(), token.clone(),
Box::new(ServiceFactory { Box::new(ServiceFactory {
inner: service.into_new_service(), inner: service.into_new_service().map(|_| ()),
}), }),
); );
} else { } else {