fetch: add retry support for downloads
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I5920652b1f84cd8d03e3f8c9d17e5aa76a6a6964
This commit is contained in:
parent
c0c9d741c1
commit
0048a1cd73
2 changed files with 44 additions and 10 deletions
|
|
@ -38,7 +38,9 @@ pub async fn execute(
|
|||
let _guard = OperationGuard::new(coordinator, operation_id);
|
||||
|
||||
// Create fetcher with shelve option
|
||||
let fetcher = Fetcher::new(".").with_shelve(args.shelve);
|
||||
let fetcher = Fetcher::new(".")
|
||||
.with_shelve(args.shelve)
|
||||
.with_retry(args.retry);
|
||||
|
||||
// Fetch all projects (progress indicators handled in fetch.rs)
|
||||
fetcher.fetch_all(&lockfile, &config).await?;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue