mirror of
https://github.com/actix/actix-extras.git
synced 2024-11-28 01:32:57 +01:00
fix actix compatibility
This commit is contained in:
parent
c446be48e3
commit
4821d51167
@ -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)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user