py: use asyncio.run() function
This commit is contained in:
parent
7caae1db16
commit
f11818e4c7
|
@ -149,5 +149,5 @@ async def main():
|
|||
exit(1)
|
||||
|
||||
|
||||
loop = asyncio.get_event_loop()
|
||||
loop.run_until_complete(main())
|
||||
if __name__ == '__main__':
|
||||
asyncio.run(main())
|
||||
|
|
Loading…
Reference in New Issue