use lifespan

This commit is contained in:
Nexus 2024-04-19 11:01:48 +01:00
parent d6a5f4e2cc
commit 7c19b3f324
Signed by: nex
GPG key ID: 0FA334385D0B689F

View file

@ -20,7 +20,7 @@ async def lifespan(_app: FastAPI):
yield
app = FastAPI()
app = FastAPI(lifespan=lifespan)
app.state.cache = {}