Moved StopGaurd to it's own crate (#7635)

This commit is contained in:
Marek Kotewicz
2018-01-19 13:46:31 +01:00
committed by GitHub
parent d430e7f4e2
commit 6bebb9e74a
7 changed files with 16 additions and 4 deletions

View File

@@ -105,6 +105,7 @@ extern crate migration;
extern crate rlp_derive;
extern crate rustc_hex;
extern crate stats;
extern crate stop_guard;
extern crate time;
extern crate using_queue;
extern crate table;

View File

@@ -31,6 +31,7 @@ use miner::Miner;
use snapshot::{ManifestData, RestorationStatus};
use snapshot::service::{Service as SnapshotService, ServiceParams as SnapServiceParams};
use ansi_term::Colour;
use stop_guard::StopGuard;
/// Message type for external and internal events
#[derive(Clone, PartialEq, Eq, Debug)]
@@ -59,7 +60,7 @@ pub struct ClientService {
client: Arc<Client>,
snapshot: Arc<SnapshotService>,
database: Arc<Database>,
_stop_guard: ::devtools::StopGuard,
_stop_guard: StopGuard,
}
impl ClientService {
@@ -111,7 +112,7 @@ impl ClientService {
spec.engine.register_client(Arc::downgrade(&client) as _);
let stop_guard = ::devtools::StopGuard::new();
let stop_guard = StopGuard::new();
Ok(ClientService {
io_service: Arc::new(io_service),