Skip to content

Commit 208f378

Browse files
committed
chore: do not specify lifespan to FastAPI constructor
1 parent 3d541d6 commit 208f378

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/main.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,11 @@ async def lifespan(app: FastAPI):
2020
await Cache.close()
2121

2222

23-
app = FastAPI(lifespan=lifespan)
23+
# TODO(onyb): Add lifespan to FastAPI when we actually need Redis
24+
app = FastAPI(lifespan=None)
2425

2526

27+
# API routers
2628
app.include_router(base_router)
2729
app.include_router(pricing_router)
2830
app.include_router(nfts_router)

0 commit comments

Comments
 (0)