run: remove unused loop variable

This commit is contained in:
Luna 2019-02-28 23:14:56 -03:00
parent ca5386d3ce
commit cbf6a3d441
1 changed files with 4 additions and 2 deletions

6
run.py
View File

@ -311,11 +311,13 @@ def start_websocket(host, port, ws_handler) -> asyncio.Future:
@app.before_serving @app.before_serving
async def app_before_serving(): async def app_before_serving():
"""Callback for variable setup.
Also sets up the websocket handlers.
"""
log.info('opening db') log.info('opening db')
await init_app_db(app) await init_app_db(app)
loop = asyncio.get_event_loop()
app.session = ClientSession() app.session = ClientSession()
init_app_managers(app) init_app_managers(app)