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:
Jiahao XU 2024-07-25 00:13:44 +10:00 committed by Jiahao XU
parent a908d3a6dd
commit 397af7e45c

View file

@ -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