diff options
author | Jesse Luehrs <doy@tozt.net> | 2019-10-22 08:01:40 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2019-10-22 08:02:20 -0400 |
commit | 14d838cff6bda47e462de4449f298d99b6fdd6db (patch) | |
tree | 49ff35ef1763d1733381f94197b986ff46bcb3c7 | |
parent | fb8fbbaa4587bb89d65849518d38125406c0c2af (diff) | |
download | teleterm-14d838cff6bda47e462de4449f298d99b6fdd6db.tar.gz teleterm-14d838cff6bda47e462de4449f298d99b6fdd6db.zip |
add comment
-rw-r--r-- | src/cmd.rs | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -96,9 +96,24 @@ pub fn run(matches: &clap::ArgMatches<'_>) -> Result<()> { let mut cmd_config = (chosen_cmd.config)(config)?; cmd_config.merge_args(chosen_submatches)?; log::debug!("{:?}", cmd_config); + + // XXX ideally we'd be able to run everything on the current_thread + // runtime, but this is blocked on + // https://github.com/tokio-rs/tokio/issues/1356 (fixed in the 0.2 branch + // which is not yet stable) + + // let mut runtime = tokio::runtime::current_thread::Runtime::new() + // .unwrap(); + // runtime + // .block_on(cmd_config.run().map_err(|e| { + // log::error!("{}", e); + // })) + // .unwrap(); + tokio::run(cmd_config.run().map_err(|e| { log::error!("{}", e); })); + Ok(()) } |