Add new option --disable-quick-install-stats

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
Jiahao XU 2024-07-25 00:12:35 +10:00 committed by Jiahao XU
parent 6df132a9d5
commit a908d3a6dd
6 changed files with 33 additions and 3 deletions

View file

@ -9,3 +9,5 @@ pub use binstalk_fetchers as fetchers;
pub use binstalk_registry as registry;
pub use binstalk_types as manifests;
pub use detect_targets::{get_desired_targets, DesiredTargets, TARGET};
pub use fetchers::QUICK_INSTALL_STATS_URL;

View file

@ -55,4 +55,5 @@ pub struct Options {
pub registry: Registry,
pub signature_policy: SignaturePolicy,
pub disable_quick_install_stats: bool,
}

View file

@ -176,7 +176,9 @@ async fn resolve_inner(
}
for fetcher in handles {
fetcher.clone().report_to_upstream();
if !opts.disable_quick_install_stats {
fetcher.clone().report_to_upstream();
}
match AutoAbortJoinHandle::new(fetcher.clone().find())
.flattened_join()
.await