fix: use aclose during Redis cleanup
This commit is contained in:
parent
ca58dd94db
commit
aefe4e0bda
@ -47,7 +47,7 @@ async def lifespan(app: FastAPI):
|
||||
yield
|
||||
|
||||
# Cleanup
|
||||
await redis.close()
|
||||
await redis.aclose()
|
||||
await app.state.engine.dispose()
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user