Skip to content

Commit 17c3302

Browse files
author
mingsing
committed
remove deprecated wait_until_ready in async DaprHealth
Signed-off-by: mingsing <[email protected]>
1 parent d72b22e commit 17c3302

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

dapr/aio/clients/grpc/subscription.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ async def outgoing_request_iterator():
5252

5353
async def reconnect_stream(self):
5454
await self.close()
55-
await DaprHealth.wait_until_ready()
55+
await DaprHealth.wait_for_sidecar()
5656
print('Attempting to reconnect...')
5757
await self.start()
5858

dapr/aio/clients/health.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,6 @@
2424

2525

2626
class DaprHealth:
27-
@staticmethod
28-
async def wait_until_ready():
29-
warn(
30-
'This method is deprecated. Use DaprHealth.wait_for_sidecar instead.',
31-
DeprecationWarning,
32-
stacklevel=2,
33-
)
34-
await DaprHealth.wait_for_sidecar()
35-
3627
@staticmethod
3728
async def wait_for_sidecar():
3829
health_url = f'{get_api_url()}/healthz/outbound'

0 commit comments

Comments
 (0)