Skip to content

Commit

Permalink
fix: awaiting sync func
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeshultz committed Jul 12, 2024
1 parent 5c0a126 commit 8845be4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions silverback/subscriptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ async def get_subscription_data_nowait(self, sub_id: str) -> AsyncGenerator[dict
await self.__anext__()
else:
try:
yield await queue.get_nowait()
yield queue.get_nowait()
except asyncio.QueueEmpty:
pass

Expand All @@ -154,7 +154,7 @@ async def pop_subscription_data(self, sub_id: str) -> Union[dict, None]:

if queue:
try:
return await queue.get_nowait()
return queue.get_nowait()
except asyncio.QueueEmpty:
pass

Expand Down

0 comments on commit 8845be4

Please sign in to comment.