diff options
author | Lars Wirzenius <liw@liw.fi> | 2021-04-23 10:14:13 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2021-04-23 10:14:13 +0300 |
commit | ac662c299c0cf97d1305e2ee832f2cbeaf1c3edd (patch) | |
tree | db8d71b020fb5fd699dddab8885a97ddd2309478 | |
parent | e49cc3609a432f44b6cd8d575e6cdb89f599ae93 (diff) | |
download | summain-rs-ac662c299c0cf97d1305e2ee832f2cbeaf1c3edd.tar.gz |
Revert "spawn blocking threads"
This reverts commit e49cc3609a432f44b6cd8d575e6cdb89f599ae93.
-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 ff48cb5..377a84d 100644 --- a/src/bin/summain.rs +++ b/src/bin/summain.rs @@ -10,7 +10,7 @@ async fn 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 { |