From 5b0531e9647916107e6f4a2392cef1d2032663d8 Mon Sep 17 00:00:00 2001 From: Robert Habermeier Date: Sat, 17 Dec 2016 00:44:18 +0100 Subject: [PATCH] fix compiler warnings --- parity/run.rs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/parity/run.rs b/parity/run.rs index cda3618fb..6647bd315 100644 --- a/parity/run.rs +++ b/parity/run.rs @@ -33,9 +33,7 @@ use ethsync::SyncConfig; use informant::Informant; use updater::{UpdatePolicy, Updater}; -use rpc::{HttpServer, IpcServer, HttpConfiguration, IpcConfiguration}; -use signer::SignerServer; -use dapps::WebappServer; +use rpc::{HttpConfiguration, IpcConfiguration}; use params::{ SpecType, Pruning, AccountsConfig, GasPricerConfig, MinerExtras, Switch, tracing_switch_to_bool, fatdb_switch_to_bool, mode_switch_to_bool @@ -118,7 +116,7 @@ pub fn open_ui(dapps_conf: &dapps::Configuration, signer_conf: &signer::Configur } // Execute in light client mode. -pub fn execute_light(cmd: RunCmd, logger: Arc) -> Result { +pub fn execute_light(cmd: RunCmd) -> Result { use light::client::{Config as ClientConfig, Service as LightClientService}; use ethsync::{LightSync, LightSyncParams, ManageNetwork}; @@ -157,6 +155,7 @@ pub fn execute_light(cmd: RunCmd, logger: Arc) -> Result) -> R } if cmd.light { - return execute_light(cmd, logger); + return execute_light(cmd); } // set up panic handler @@ -480,6 +479,9 @@ pub fn execute(cmd: RunCmd, can_restart: bool, logger: Arc) -> R // Handle exit let restart = wait_for_exit(panic_handler, Some(updater), can_restart); + // drop this stuff as soon as exit detected. + drop((http_server, ipc_server, dapps_server, signer_server)); + info!("Finishing work, please wait..."); // to make sure timer does not spawn requests while shutdown is in progress