1
0
mirror of https://github.com/fafhrd91/actix-web synced 2024-12-18 01:43:58 +01:00

use explicit actix:: mod

This commit is contained in:
Nikolay Kim 2018-01-03 19:11:40 -08:00
parent e439d0546b
commit bf11bfed8e
11 changed files with 12 additions and 12 deletions

View File

@ -99,7 +99,7 @@ fn main() {
// Subscribe to unix signals // Subscribe to unix signals
#[cfg(unix)] #[cfg(unix)]
{ {
let signals = Arbiter::system_registry().get::<ProcessSignals>(); let signals = actix::Arbiter::system_registry().get::<ProcessSignals>();
signals.send(Subscribe(addr.subscriber())); signals.send(Subscribe(addr.subscriber()));
} }

View File

@ -73,7 +73,7 @@ fn main() {
// Subscribe to unix signals // Subscribe to unix signals
#[cfg(unix)] #[cfg(unix)]
{ let signals = Arbiter::system_registry().get::<ProcessSignals>(); { let signals = actix::Arbiter::system_registry().get::<ProcessSignals>();
signals.send(Subscribe(_addr.subscriber())); } signals.send(Subscribe(_addr.subscriber())); }
println!("Started http server: 127.0.0.1:8080"); println!("Started http server: 127.0.0.1:8080");

View File

@ -100,7 +100,7 @@ fn main() {
// Subscribe to unix signals // Subscribe to unix signals
#[cfg(unix)] #[cfg(unix)]
{ {
let signals = Arbiter::system_registry().get::<ProcessSignals>(); let signals = actix::Arbiter::system_registry().get::<ProcessSignals>();
signals.send(Subscribe(addr.subscriber())); signals.send(Subscribe(addr.subscriber()));
} }

View File

@ -59,7 +59,7 @@ fn main() {
// Subscribe to unix signals // Subscribe to unix signals
#[cfg(unix)] #[cfg(unix)]
{ {
let signals = Arbiter::system_registry().get::<ProcessSignals>(); let signals = actix::Arbiter::system_registry().get::<ProcessSignals>();
signals.send(Subscribe(addr.subscriber())); signals.send(Subscribe(addr.subscriber()));
} }

View File

@ -38,7 +38,7 @@ fn main() {
// Subscribe to unix signals // Subscribe to unix signals
#[cfg(unix)] #[cfg(unix)]
{ {
let signals = Arbiter::system_registry().get::<ProcessSignals>(); let signals = actix::Arbiter::system_registry().get::<ProcessSignals>();
signals.send(Subscribe(addr.subscriber())); signals.send(Subscribe(addr.subscriber()));
} }

View File

@ -79,7 +79,7 @@ fn main() {
// Subscribe to unix signals // Subscribe to unix signals
#[cfg(unix)] #[cfg(unix)]
{ {
let signals = Arbiter::system_registry().get::<ProcessSignals>(); let signals = actix::Arbiter::system_registry().get::<ProcessSignals>();
signals.send(Subscribe(addr.subscriber())); signals.send(Subscribe(addr.subscriber()));
} }

View File

@ -46,8 +46,8 @@ fn main() {
.start(); .start();
#[cfg(unix)] #[cfg(unix)]
{ // Subscribe to unix signals { // Subscribe to unix signals
let signals = Arbiter::system_registry().get::<ProcessSignals>(); let signals = actix::Arbiter::system_registry().get::<ProcessSignals>();
signals.send(Subscribe(addr.subscriber())); signals.send(Subscribe(addr.subscriber()));
} }

View File

@ -51,7 +51,7 @@ fn main() {
// Subscribe to unix signals // Subscribe to unix signals
#[cfg(unix)] #[cfg(unix)]
{ {
let signals = Arbiter::system_registry().get::<ProcessSignals>(); let signals = actix::Arbiter::system_registry().get::<ProcessSignals>();
signals.send(Subscribe(addr.subscriber())); signals.send(Subscribe(addr.subscriber()));
} }

View File

@ -218,7 +218,7 @@ fn main() {
// Subscribe to unix signals // Subscribe to unix signals
#[cfg(unix)] #[cfg(unix)]
{ {
let signals = Arbiter::system_registry().get::<ProcessSignals>(); let signals = actix::Arbiter::system_registry().get::<ProcessSignals>();
signals.send(Subscribe(addr.subscriber())); signals.send(Subscribe(addr.subscriber()));
} }

View File

@ -76,7 +76,7 @@ fn main() {
// Subscribe to unix signals // Subscribe to unix signals
#[cfg(unix)] #[cfg(unix)]
{ {
let signals = Arbiter::system_registry().get::<ProcessSignals>(); let signals = actix::Arbiter::system_registry().get::<ProcessSignals>();
signals.send(Subscribe(_addr.subscriber())); signals.send(Subscribe(_addr.subscriber()));
} }

View File

@ -226,7 +226,7 @@ fn main() {
.start(); .start();
// Subscribe to unix signals // Subscribe to unix signals
let signals = Arbiter::system_registry().get::<ProcessSignals>(); let signals = actix::Arbiter::system_registry().get::<ProcessSignals>();
signals.send(Subscribe(addr.subscriber())); signals.send(Subscribe(addr.subscriber()));
println!("Started http server: 127.0.0.1:8080"); println!("Started http server: 127.0.0.1:8080");