-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The Download and Downloader were unnecessarily complicated with more than one way to do things and confused aborting of downloads. - Check req.Verify closer to where it's used to minimise the possibility of mistakes. - Fixed/removed racy tests for stopping downloads. This also shaved 10s of the package test runtime. - Removed the use of both a tomb and a channel to abort. downloads. Downloads are now only aborted via a channel passed in at download start time. - The downloaded file is now removed if verification fails. - The download filename is passed around instead of using a *os.File which needs to be re-seeked back to the start of file all the time. - Removed Downloader most tests which were actually functionality which is already being tested on Download.
- Loading branch information
Menno Smits
committed
Sep 26, 2016
1 parent
477fe7a
commit 4a88d70
Showing
5 changed files
with
110 additions
and
219 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.