Skip to content

Commit

Permalink
add open=True to avoid deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentsarago committed Aug 29, 2024
1 parent 3d473e7 commit 789b2b1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion space2stats_api/src/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ dependencies = [
"psycopg[pool]",
"httpx",
"geojson-pydantic",
"shapely",
"pydantic-settings>=2.0.0",
"typing_extensions",
]
Expand Down
1 change: 1 addition & 0 deletions space2stats_api/src/space2stats/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ async def connect_to_db(
max_idle=settings.DB_MAX_IDLE,
num_workers=settings.DB_NUM_WORKERS,
kwargs=pool_kwargs,
open=True,
)

# Make sure the pool is ready
Expand Down

0 comments on commit 789b2b1

Please sign in to comment.