Skip to content

Commit

Permalink
Fix the seek to end of file call
Browse files Browse the repository at this point in the history
Fixes #43

Signed-off-by: Pedro Algarvio <[email protected]>
  • Loading branch information
s0undt3ch committed May 18, 2023
1 parent cce2921 commit cb013cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog/43.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix the seek to end of file call
2 changes: 1 addition & 1 deletion src/saf/collect/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ async def _process_file(
data=CollectedLineData(line=line, source=path), backfill=True
)
else:
await rfh.seek(os.SEEK_END)
await rfh.seek(0, os.SEEK_END)
while True:
line = await rfh.readline()
if not line:
Expand Down

0 comments on commit cb013cf

Please sign in to comment.