Grab downloader

This commit is contained in:
Lorenzo Bolla
2021-10-08 10:43:52 +02:00
parent f93bc6ef0f
commit 894192851e
38 changed files with 4240 additions and 1 deletions
+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