Skip to content

Commit 55d3804

Browse files
committed
Add missing await for channel close on async client
Signed-off-by: Bernd Verst <github@bernd.dev>
1 parent 6ee22eb commit 55d3804

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dapr/aio/clients/grpc/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ def get_credentials(self):
169169
async def close(self):
170170
"""Closes Dapr runtime gRPC channel."""
171171
if hasattr(self, '_channel') and self._channel:
172-
self._channel.close()
172+
await self._channel.close()
173173

174174
async def __aenter__(self) -> Self: # type: ignore
175175
return self

0 commit comments

Comments
 (0)