From a345803331a93bc9d315b532c6a97dcbfedd8000 Mon Sep 17 00:00:00 2001 From: Lidi Zheng Date: Thu, 6 Feb 2020 14:30:18 -0800 Subject: [PATCH] Fix the channel_ready usage --- src/python/grpcio_tests/tests_aio/benchmark/worker_servicer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/python/grpcio_tests/tests_aio/benchmark/worker_servicer.py b/src/python/grpcio_tests/tests_aio/benchmark/worker_servicer.py index 8c438cc8d9b..aea186c5393 100644 --- a/src/python/grpcio_tests/tests_aio/benchmark/worker_servicer.py +++ b/src/python/grpcio_tests/tests_aio/benchmark/worker_servicer.py @@ -143,7 +143,7 @@ async def _create_sub_worker() -> _SubWorker: 'Created sub worker process for port [%d] at pid [%d]', port, process.pid) channel = aio.insecure_channel(f'localhost:{port}') _LOGGER.info('Waiting for sub worker at port [%d]', port) - await aio.channel_ready(channel) + await channel.channel_ready() stub = worker_service_pb2_grpc.WorkerServiceStub(channel) return _SubWorker( process=process,