diff options
author | Teddy Wing | 2021-06-06 15:57:29 +0200 |
---|---|---|
committer | Teddy Wing | 2021-06-06 15:57:29 +0200 |
commit | ef924ebb9005d19321bc3336ec9894f0878d9aaf (patch) | |
tree | c01d2701c7ca2e1d6afa4e165fc717c47ffa1817 /src/main.rs | |
parent | 5539a9e8cc6e0b348f0428502b80ba32843ec36a (diff) | |
download | reflectub-ef924ebb9005d19321bc3336ec9894f0878d9aaf.tar.bz2 |
Explicitly use tokio's multi-threaded runtime
Rather that relying on the Cargo features we've enabled to define this,
create a multi-threaded runtime in code.
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index a151217..20587d5 100644 --- a/src/main.rs +++ b/src/main.rs @@ -64,7 +64,7 @@ fn run() -> anyhow::Result<()> { let base_cgitrc = opt_matches.opt_str("cgitrc") .map(|s| PathBuf::from(s)); - let rt = tokio::runtime::Runtime::new()?; + let rt = tokio::runtime::Builder::new_multi_thread().build()?; let _rt_guard = rt.enter(); // let repos = github::fetch_repos(username).await? |