From 7aff6c4555ef2caa1a5f15dc0f8f466b64eb505a Mon Sep 17 00:00:00 2001 From: Tim Hughes Date: Sun, 4 Oct 2020 21:51:05 +0100 Subject: [PATCH] dont need ThreadPoolExecutor in asyncio --- examples/python/helloworld/async_greeter_server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/python/helloworld/async_greeter_server.py b/examples/python/helloworld/async_greeter_server.py index 79903aed8d7..c772bcac57d 100644 --- a/examples/python/helloworld/async_greeter_server.py +++ b/examples/python/helloworld/async_greeter_server.py @@ -29,7 +29,7 @@ class Greeter(helloworld_pb2_grpc.GreeterServicer): async def serve(): - server = grpc.aio.server(futures.ThreadPoolExecutor(max_workers=10)) + server = grpc.aio.server() helloworld_pb2_grpc.add_GreeterServicer_to_server(Greeter(), server) listen_addr = '[::]:50051' server.add_insecure_port(listen_addr)