fix DeprecationWarnings on 3.10

This commit is contained in:
Joel Beckmeyer 2021-10-16 08:58:49 -04:00
parent 69947bc60c
commit 738e0a999f

View file

@ -45,8 +45,9 @@ async def start_webserver():
await site.start()
def main():
loop = asyncio.get_event_loop()
asyncio.ensure_future(start_webserver())
loop = asyncio.new_event_loop()
asyncio.set_event_loop(loop)
asyncio.ensure_future(start_webserver(), loop=loop)
loop.run_forever()