Skip to content

Commit

Permalink
Add config variable S3FS_BLOCK_SIZE
Browse files Browse the repository at this point in the history
This sets property default_block_size when creating an instance of
class S3FileSystem.
  • Loading branch information
borellim authored and Ubuntu committed Feb 27, 2020
1 parent 2a65a08 commit 53ab55d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions invenio_s3/ext.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ def init_s3fs_info(self):
'S3_SIGNATURE_VERSION', 's3v4'
),
},
default_block_size=current_app.config.get('S3FS_BLOCK_SIZE', None),
)

s3_endpoint = current_app.config.get('S3_ENDPOINT_URL', None)
Expand Down

0 comments on commit 53ab55d

Please sign in to comment.