зеркало из https://github.com/mozilla/bugbug.git
Download files iterating on bigger chunks
This commit is contained in:
Родитель
7b2d40ae24
Коммит
bbb6df28ff
|
@ -193,7 +193,7 @@ def download_check_etag(url, path=None):
|
|||
r.raise_for_status()
|
||||
|
||||
with open(path, "wb") as f:
|
||||
for chunk in r.iter_content(chunk_size=4096):
|
||||
for chunk in r.iter_content(chunk_size=1048576):
|
||||
f.write(chunk)
|
||||
|
||||
with open(f"{path}.etag", "w") as f:
|
||||
|
|
Загрузка…
Ссылка в новой задаче