Skip to content

Commit

Permalink
using explicit default chunk size
Browse files Browse the repository at this point in the history
  • Loading branch information
brimoor committed Aug 16, 2020
1 parent 336a27a commit 03d3101
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion eta/core/web.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ def download_google_drive_file(fid, path=None, chunk_size=None):
class WebSession(object):
"""Class for downloading files from the web."""

DEFAULT_CHUNK_SIZE = None
# Chunk size, in bytes
DEFAULT_CHUNK_SIZE = 64 * 1024

def __init__(self, chunk_size=None):
"""Creates a WebSession instance.
Expand Down

0 comments on commit 03d3101

Please sign in to comment.