mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 15:41:02 +00:00
committed by
Robert Habermeier
parent
052c50b536
commit
d978425f05
@@ -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())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user