Await closing of redis connection
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
ae5309a476
commit
f6597e8fae
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user