Skip to content

Commit

Permalink
Await callback() as well
Browse files Browse the repository at this point in the history
Co-authored-by: Stef Piatek <[email protected]>
  • Loading branch information
milanmlft and stefpiatek authored Dec 4, 2023
1 parent 1252f90 commit 7925899
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pixl_core/src/core/patient_queue/subscriber.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ async def run(self, callback: Callable[[bytes], Awaitable[None]]) -> None:

try:
await asyncio.sleep(0.01) # Avoid very fast callbacks
callback(message.body)
await callback(message.body)
except Exception:
LOGGER.exception(
"Failed to process %s" "Not re-queuing message",
Expand Down

0 comments on commit 7925899

Please sign in to comment.