1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-06-25 18:09:22 +02:00

use workspace

This commit is contained in:
Nikolay Kim
2017-12-31 21:55:25 -08:00
parent 8e89ff1d1e
commit d2f54b7d19
18 changed files with 53 additions and 20 deletions

View File

@ -2,6 +2,7 @@
name = "tls-example"
version = "0.1.0"
authors = ["Nikolay Kim <fafhrd91@gmail.com>"]
workspace = "../.."
[[bin]]
name = "server"

View File

@ -8,7 +8,7 @@ use std::io::Read;
use actix::*;
use actix_web::*;
#[cfg(target_os = "linux")]
#[cfg(unix)]
use actix::actors::signal::{ProcessSignals, Subscribe};
/// somple handle
@ -49,7 +49,7 @@ fn main() {
.start_ssl(&pkcs12).unwrap();
// Subscribe to unix signals
#[cfg(target_os = "linux")]
#[cfg(unix)]
{
let signals = Arbiter::system_registry().get::<ProcessSignals>();
signals.send(Subscribe(addr.subscriber()));