Basic informant (#118)

* Informant

* Pass Handle instead of Core
This commit is contained in:
Arkadiy Paronyan
2018-04-11 16:47:22 +02:00
committed by Robert Habermeier
parent 052c50b536
commit d978425f05
8 changed files with 104 additions and 17 deletions
+1 -8
View File
@@ -22,16 +22,9 @@ extern crate polkadot_cli as cli;
#[macro_use]
extern crate error_chain;
extern crate ctrlc;
use std::sync::mpsc;
quick_main!(run);
fn run() -> cli::error::Result<()> {
let (exit_send, exit_receive) = mpsc::channel();
ctrlc::CtrlC::set_handler(move || {
exit_send.send(()).expect("Error sending exit notification");
});
cli::run(::std::env::args(), exit_receive)
cli::run(::std::env::args())
}