summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2021-05-17 10:29:36 +0200
committerMatthias Beyer <mail@beyermatthias.de>2021-05-17 10:29:36 +0200
commit8507a747e5234d5f70c1e148c58e41a876954270 (patch)
tree8412de1129b86c30ffae62742b7ded37061cf22d
parentaad61cd0d4aa2e87100dc1f964923d15fe98eb14 (diff)
parent17a469d3dc1324bcbeba743fe3df3fede0a385f7 (diff)
Merge branch 'download-fail-slow'
-rw-r--r--src/commands/source.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/commands/source.rs b/src/commands/source.rs
index 0fc1eac..c72cd08 100644
--- a/src/commands/source.rs
+++ b/src/commands/source.rs
@@ -304,11 +304,11 @@ pub async fn download(
})
.flatten()
.collect::<futures::stream::FuturesUnordered<_>>()
- .collect::<Result<()>>();
+ .collect::<Vec<Result<()>>>();
let multibar_block = tokio::task::spawn_blocking(move || multi.join());
let (r, _) = tokio::join!(r, multibar_block);
- r
+ r.into_iter().collect()
}
async fn of(