Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lferran committed Mar 6, 2025
1 parent cb11317 commit bcf0220
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nucliadb/src/nucliadb/backups/restore.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@ def __init__(self, download_stream: AsyncIterator[bytes]):
async def read(self, size: int) -> bytes:
while len(self.buffer) < size:
chunk = await self.download_stream.__anext__()
if not chunk:
pass
self.buffer += chunk
result = self.buffer[:size]
self.buffer = self.buffer[size:]
Expand Down

0 comments on commit bcf0220

Please sign in to comment.