aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2021-06-06 15:57:29 +0200
committerTeddy Wing2021-06-06 15:57:29 +0200
commitef924ebb9005d19321bc3336ec9894f0878d9aaf (patch)
treec01d2701c7ca2e1d6afa4e165fc717c47ffa1817
parent5539a9e8cc6e0b348f0428502b80ba32843ec36a (diff)
downloadreflectub-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.
-rw-r--r--src/main.rs2
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?