Browse Source

Merge branch 'asyncio-3.10' into 'master'

fix DeprecationWarnings on 3.10

See merge request pleroma/relay!32
merge-requests/17/merge
Izalia Mae 7 months ago
parent
commit
5c5f212d70
  1. 5
      relay/__main__.py

5
relay/__main__.py

@ -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()

Loading…
Cancel
Save