-
Notifications
You must be signed in to change notification settings - Fork 284
Closed
Description
(this is about code currently in experimental-client branch, hopefully soon in develop)
After we removed mirrors support, we should look through the download code
- Add type annotations
- replace old style docstrings
- see if code can be simplified
- consider removing average download speed check (it is useless in practice, will trigger false positives if the limit was usefully low and makes the code complex). It also prevents setting chunk size to a reasonable value (it's currently way too large but I'm afraid to lower it because the average speed check then becomes even more volatile for the first chunks -- if the limit is even close to reasonable, it could trigger for the first chunk much easier than later chunks just because that's how statistics works)
- consider getting rid of strict_required_length: I do not see the value, and it makes the code more complex (if on the other hand there is actual value in length checks, we should implement them in MetadataBundle: the spec does not require them but they would be easy to add)