Skip to content

Commit 629cad3

Browse files
committed
Actualize docs a bit
1 parent 7456a06 commit 629cad3

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

docs/usage/frameworks/fastapi.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,6 @@ db_pool = ConnectionPool(
8282
async def lifespan(app: FastAPI) -> AsyncGenerator[None, None]:
8383
"""Startup database connection pool and close it on shutdown."""
8484
app.state.db_pool = db_pool
85-
yield
86-
db_pool.close()
8785

8886

8987
app = FastAPI(lifespan=lifespan)

docs/usage/frameworks/litestar.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ async def pg_pool_example(request: Request) -> list[dict[Any, Any]]:
4646
app = Litestar(
4747
[pg_pool_example],
4848
on_startup=[start_db_pool],
49-
on_shutdown=[stop_db_pool],
5049
)
5150

5251

0 commit comments

Comments
 (0)