diff options
author | Lars Wirzenius <liw@liw.fi> | 2021-04-23 11:09:25 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2021-04-23 11:09:25 +0300 |
commit | 86fc82d9296874de4836ee7c1ae4d6f0bb71eebc (patch) | |
tree | 6c624238713c8481697a3cd67e7d9b9ab7c4e328 | |
parent | 5809e6a2c8383537b7cfbb2d7a17d9b1314f4c55 (diff) | |
download | summain-rs-86fc82d9296874de4836ee7c1ae4d6f0bb71eebc.tar.gz |
back to non-spawning
-rw-r--r-- | src/bin/summain.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/summain.rs b/src/bin/summain.rs index 110d228..b0be829 100644 --- a/src/bin/summain.rs +++ b/src/bin/summain.rs @@ -18,7 +18,7 @@ async fn async_main() -> anyhow::Result<()> { let mut handles = vec![]; for filename in opt.pathnames.iter().cloned() { - handles.push(tokio::task::spawn_blocking(move || report(filename))); + handles.push(tokio::spawn(async move { report(filename) })); } for h in handles { |