Grab downloader

This commit is contained in:
Lorenzo Bolla committed 2022-01-31 10:32:54 +01:00
1 parent f93bc6ef0f
commit 894192851e
38 files changed
+4240 -1

No files matched your search

+2 -1
View File
@@ -227,7 +227,8 @@ func (context *AptlyContext) newDownloader(progress aptly.Progress) aptly.Downlo
// If flag is defined prefer it to global setting
maxTries = maxTriesFlag.Value.Get().(int)
}
return http.NewDownloader(downloadLimit*1024, maxTries, progress)
// return http.NewDownloader(downloadLimit*1024, maxTries, progress)
return http.NewGrabDownloader(downloadLimit*1024, maxTries, progress)
}
// Downloader returns instance of current downloader