Skip to content

Commit

Permalink
Fix/azure blob new version (#5004)
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnJyong authored Jun 6, 2024
1 parent 1ccba85 commit 481e7bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/extensions/storage/azure_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def load_stream(self, filename: str) -> Generator:
def generate(filename: str = filename) -> Generator:
blob = client.get_blob_client(container=self.bucket_name, blob=filename)
with closing(blob.download_blob()) as blob_stream:
while chunk := blob_stream.readall(4096):
while chunk := blob_stream.readall():
yield chunk

return generate()
Expand Down

0 comments on commit 481e7bc

Please sign in to comment.