async def serve() -> None:
    server = grpc.aio.server()
    helloworld_pb2_grpc.add_GreeterServicer_to_server(Greeter(), server)
    listen_addr = '[::]:50051'
    server.add_insecure_port(listen_addr)
    logging.info('Starting server on %s', listen_addr)
    (await server.start())
    try:
        (await server.wait_for_termination())
    except KeyboardInterrupt:
        (await server.stop(0))
async def serve() -> None:
    server = grpc.aio.server()
    helloworld_pb2_grpc.add_GreeterServicer_to_server(Greeter(), server)
    listen_addr = '[::]:50051'
    server.add_insecure_port(listen_addr)
    logging.info('Starting server on %s', listen_addr)
    (await server.start())
    try:
        (await server.wait_for_termination())
    except KeyboardInterrupt:
        (await server.stop(0))