mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-06-15 15:16:37 +00:00
Send quickinstall stats in parallel
This commit also make sure'the stats is always sent for each fetcher, regardless of whether it is picked or not, to make sure that the quick-install stats collection gets the full infomration of possible targets. Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
a908d3a6dd
commit
397af7e45c
1 changed files with 5 additions and 2 deletions
|
@ -175,10 +175,13 @@ async fn resolve_inner(
|
|||
);
|
||||
}
|
||||
|
||||
for fetcher in handles {
|
||||
if !opts.disable_quick_install_stats {
|
||||
if !opts.disable_quick_install_stats {
|
||||
for fetcher in &handles {
|
||||
fetcher.clone().report_to_upstream();
|
||||
}
|
||||
}
|
||||
|
||||
for fetcher in handles {
|
||||
match AutoAbortJoinHandle::new(fetcher.clone().find())
|
||||
.flattened_join()
|
||||
.await
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue