Skip to content

Commit

Permalink
Merge pull request #87 from honglei/master
Browse files Browse the repository at this point in the history
add missing offset in iter_chunked
  • Loading branch information
mosquito authored Sep 20, 2023
2 parents f86b468 + 8504611 commit 549d63c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aiofile/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ def __aiter__(self) -> LineReader:
return LineReader(self.file)

def iter_chunked(self, chunk_size: int = Reader.CHUNK_SIZE) -> Reader:
return Reader(self.file, chunk_size=chunk_size)
return Reader(self.file, chunk_size=chunk_size, offset=self._offset)


class BinaryFileWrapper(FileIOWrapperBase):
Expand Down

0 comments on commit 549d63c

Please sign in to comment.