Skip to content

Commit

Permalink
Skip last chunk in CPE match database producer if it's empty
Browse files Browse the repository at this point in the history
  • Loading branch information
timopollmeier committed Jan 15, 2025
1 parent 4c95454 commit 4a2cea9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion greenbone/scap/generic_cli/producer/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,8 @@ async def run_loop(self) -> None:
self._progress.update(task, completed=count)

count += len(chunk)
await self._queue.put_chunk(chunk)
if len(chunk):
await self._queue.put_chunk(chunk)
self._progress.update(task, completed=count)

self._console.log(
Expand Down

0 comments on commit 4a2cea9

Please sign in to comment.