Skip to content

Commit 449f512

Browse files
committed
Remove loop
1 parent 4a243ba commit 449f512

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

example.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@ async def main():
2929
print(client.metrics)
3030

3131

32-
loop = asyncio.get_event_loop()
33-
loop.run_until_complete(main())
32+
if __name__ == "__main__":
33+
asyncio.run(main())

0 commit comments

Comments
 (0)