Simpler tokio runtime (#140)

* Simpler tokio runtime; 3 threads and no io driver

* switch benches over to other runtime
This commit is contained in:
June
2026-03-05 15:54:55 -06:00
committed by GitHub
parent fca61d55b5
commit 725c6c6bfd
3 changed files with 20 additions and 6 deletions
+12 -5
View File
@@ -70,11 +70,18 @@ fn reset_term() {
);
}
#[tokio::main]
async fn main() -> Result<(), WrappedErr> {
let result = inner_main().await;
reset_term();
result
fn main() -> Result<(), WrappedErr> {
let rt = tokio::runtime::Builder::new_multi_thread()
.worker_threads(3)
.enable_time()
.build()
.unwrap();
rt.block_on(async move {
let result = inner_main().await;
reset_term();
result
})
}
async fn inner_main() -> Result<(), WrappedErr> {