Fix/azure blob new version (#5004)

This commit is contained in:
Jyong 2024-06-06 23:36:13 +08:00 committed by GitHub
parent 1ccba85c91
commit 481e7bc6b9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -39,7 +39,7 @@ class AzureStorage(BaseStorage):
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()