Removing additional thread from JSON-RPC

This commit is contained in:
Tomasz Drwięga
2016-04-06 19:14:05 +02:00
parent 1f9eb97d0a
commit a52043d5b3
2 changed files with 2 additions and 20 deletions

View File

@@ -594,10 +594,8 @@ impl Configuration {
} else {
None
};
let rpc_handle = rpc_server.map(|server| {
panic_handler.forward_from(&server);
server
}).map(|server| {
let url = format!("{}:{}",
match self.args.flag_rpcaddr.as_ref().unwrap_or(&self.args.flag_jsonrpc_interface).as_str() {
"all" => "0.0.0.0",