Skip to content

Commit

Permalink
Remove unnecessary line
Browse files Browse the repository at this point in the history
Originally added on the basis we might care about tracking the number of
events lost from the queue, but that isn't necessary.
  • Loading branch information
AlexanderWells-diamond committed Aug 24, 2023
1 parent 11bf738 commit 4bce36b
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/coniql/caplugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,6 @@ def __callback(channel: Channel):
while True:
try:
value.get_nowait()
value.task_done() # Not necessary as we never join on the queue
except asyncio.QueueEmpty:
break

Expand Down

0 comments on commit 4bce36b

Please sign in to comment.