1
0
mirror of https://github.com/actix/actix-extras.git synced 2024-11-30 18:34:36 +01:00

fix actix compatibility

This commit is contained in:
Nikolay Kim 2018-01-27 11:15:03 -08:00
parent c446be48e3
commit 4821d51167

View File

@ -386,7 +386,8 @@ impl<H: HttpHandler, U, V> HttpServer<TlsStream<TcpStream>, net::SocketAddr, H,
// start http server actor
let signals = self.subscribe_to_signals();
let addr: SyncAddress<_> = Actor::start(self);
signals.map(|signals| signals.send(signal::Subscribe(addr.subscriber())));
signals.map(|signals| signals.send(
signal::Subscribe(addr.clone().into_subscriber())));
Ok(addr)
}
}
@ -431,7 +432,8 @@ impl<H: HttpHandler, U, V> HttpServer<SslStream<TcpStream>, net::SocketAddr, H,
// start http server actor
let signals = self.subscribe_to_signals();
let addr: SyncAddress<_> = Actor::start(self);
signals.map(|signals| signals.send(signal::Subscribe(addr.subscriber())));
signals.map(|signals| signals.send(
signal::Subscribe(addr.clone().into_subscriber())));
Ok(addr)
}
}