mirror of
https://github.com/actix/actix-web.git
synced 2025-01-24 16:08:06 +00:00
fix actix compatibility
This commit is contained in:
parent
c446be48e3
commit
4821d51167
1 changed files with 4 additions and 2 deletions
|
@ -386,7 +386,8 @@ impl<H: HttpHandler, U, V> HttpServer<TlsStream<TcpStream>, net::SocketAddr, H,
|
||||||
// start http server actor
|
// start http server actor
|
||||||
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(signal::Subscribe(addr.subscriber())));
|
signals.map(|signals| signals.send(
|
||||||
|
signal::Subscribe(addr.clone().into_subscriber())));
|
||||||
Ok(addr)
|
Ok(addr)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -431,7 +432,8 @@ impl<H: HttpHandler, U, V> HttpServer<SslStream<TcpStream>, net::SocketAddr, H,
|
||||||
// start http server actor
|
// start http server actor
|
||||||
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(signal::Subscribe(addr.subscriber())));
|
signals.map(|signals| signals.send(
|
||||||
|
signal::Subscribe(addr.clone().into_subscriber())));
|
||||||
Ok(addr)
|
Ok(addr)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue