Skip to content

Commit

Permalink
Add missing await for channel close on async client
Browse files Browse the repository at this point in the history
Signed-off-by: Bernd Verst <[email protected]>
  • Loading branch information
berndverst committed Nov 27, 2023
1 parent 6ee22eb commit 55d3804
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dapr/aio/clients/grpc/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def get_credentials(self):
async def close(self):
"""Closes Dapr runtime gRPC channel."""
if hasattr(self, '_channel') and self._channel:
self._channel.close()
await self._channel.close()

async def __aenter__(self) -> Self: # type: ignore
return self
Expand Down

0 comments on commit 55d3804

Please sign in to comment.