1
0
mirror of https://github.com/fafhrd91/actix-web synced 2024-11-24 08:22:59 +01:00

actix compatibility

This commit is contained in:
Nikolay Kim 2018-02-08 17:08:57 -08:00
parent 2faf3a5eb6
commit bc6300be34

View File

@ -387,7 +387,7 @@ impl<H: HttpHandler, U, V> HttpServer<TlsStream<TcpStream>, net::SocketAddr, H,
let signals = self.subscribe_to_signals(); let signals = self.subscribe_to_signals();
let addr: SyncAddress<_> = Actor::start(self); let addr: SyncAddress<_> = Actor::start(self);
signals.map(|signals| signals.send( signals.map(|signals| signals.send(
signal::Subscribe(addr.clone().into_subscriber()))); signal::Subscribe(addr.clone().into())));
Ok(addr) Ok(addr)
} }
} }
@ -433,7 +433,7 @@ impl<H: HttpHandler, U, V> HttpServer<SslStream<TcpStream>, net::SocketAddr, H,
let signals = self.subscribe_to_signals(); let signals = self.subscribe_to_signals();
let addr: SyncAddress<_> = Actor::start(self); let addr: SyncAddress<_> = Actor::start(self);
signals.map(|signals| signals.send( signals.map(|signals| signals.send(
signal::Subscribe(addr.clone().into_subscriber()))); signal::Subscribe(addr.clone().into())));
Ok(addr) Ok(addr)
} }
} }