From a062bef3f8790fb7858a005aeeda0839444cda11 Mon Sep 17 00:00:00 2001 From: David Zhao Date: Tue, 5 Nov 2024 18:30:05 -0600 Subject: [PATCH] fix --- examples/api.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/examples/api.py b/examples/api.py index a61059d3..f9e34265 100644 --- a/examples/api.py +++ b/examples/api.py @@ -15,6 +15,4 @@ async def main(): if __name__ == "__main__": - loop = asyncio.new_event_loop() - asyncio.set_event_loop(loop) - loop.run_until_complete(main()) + asyncio.run(main())