Skip to content

Commit b3640c8

Browse files
committed
feat(dist/manifestation): adjust default concurrent downloads when installing toolchains
1 parent 0200dc4 commit b3640c8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/dist/manifestation.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,10 +157,12 @@ impl Manifestation {
157157
let mut things_downloaded: Vec<String> = Vec::new();
158158
let components = update.components_urls_and_hashes(new_manifest)?;
159159
let components_len = components.len();
160+
161+
const DEFAULT_CONCURRENT_DOWNLOADS: usize = 2;
160162
let concurrent_downloads = download_cfg
161163
.process
162164
.concurrent_downloads()
163-
.unwrap_or(components_len);
165+
.unwrap_or(DEFAULT_CONCURRENT_DOWNLOADS);
164166

165167
const DEFAULT_MAX_RETRIES: usize = 3;
166168
let max_retries: usize = download_cfg

0 commit comments

Comments
 (0)