Skip to content

Commit 276978b

Browse files
committed
fix(toolkit): make use of tokio runtime
1 parent 306dfc1 commit 276978b

3 files changed

Lines changed: 16 additions & 1 deletion

File tree

Cargo.lock

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

toolkit/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ serde_json = "1.0.66"
1414
structopt = "0.3.22"
1515
witnet_data_structures = { path = "../data_structures", default-features = false }
1616
witnet_rad = { path = "../rad", default-features = false }
17+
tokio = { version = "1.44.1", features = ["rt", "rt-multi-thread", "macros"] }

toolkit/src/main.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ mod cli;
2828
///
2929
/// This basically handles the core functionality of the CLI, and ensures that the process exits
3030
/// gracefully.
31-
fn main() {
31+
#[tokio::main]
32+
async fn main() {
3233
let command = Command::from_args();
3334
let exit_code = cli::process_command(command);
3435
std::process::exit(exit_code);

0 commit comments

Comments
 (0)