Await closing of redis connection
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
decentral1se 2021-06-13 12:58:24 +02:00
parent ae5309a476
commit f6597e8fae
Signed by: decentral1se
GPG Key ID: 92DAD76BD9567B8A

View File

@ -52,7 +52,7 @@ async def startup_event():
@app.on_event("shutdown") @app.on_event("shutdown")
async def shutdown_event(): async def shutdown_event():
app.state.redis.close() await app.state.redis.close()
app.add_middleware(SessionMiddleware, secret_key=APP_SECRET_KEY) app.add_middleware(SessionMiddleware, secret_key=APP_SECRET_KEY)