Skip to content

Commit

Permalink
fix: upgrade titiler.pgstac to 0.8.3 (#318)
Browse files Browse the repository at this point in the history
  • Loading branch information
smohiudd authored Feb 22, 2024
2 parents 3e41a4f + 87e3be4 commit 252253f
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion database/infrastructure/construct.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,6 @@ def __init__(
description=f"Name of the Secrets Manager instance holding the connection info for the {construct_id} postgres database",
)
if self.proxy:

CfnOutput(
self,
"rds-proxy-endpoint",
Expand Down
2 changes: 1 addition & 1 deletion raster_api/runtime/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
@app.on_event("startup")
async def startup_event() -> None:
"""Connect to database on startup."""
await connect_to_db(app, settings=settings.load_postgres_settings())
await connect_to_db(app, settings=settings.load_postgres_settings(), pool_kwargs={})


handler = Mangum(app, lifespan="off", api_gateway_base_path=app.root_path)
Expand Down
2 changes: 1 addition & 1 deletion raster_api/runtime/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

inst_reqs = [
"boto3",
"titiler.pgstac==0.8.2",
"titiler.pgstac==0.8.3",
"titiler.core>=0.15.5,<0.16",
"titiler.mosaic>=0.15.5,<0.16",
"titiler.extensions[cogeo]>=0.15.5,<0.16",
Expand Down
2 changes: 1 addition & 1 deletion raster_api/runtime/src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
async def lifespan(app: FastAPI):
"""FastAPI Lifespan."""
# Create Connection Pool
await connect_to_db(app, settings=settings.load_postgres_settings())
await connect_to_db(app, settings=settings.load_postgres_settings(), pool_kwargs={})
yield
# Close the Connection Pool
await close_db_connection(app)
Expand Down

0 comments on commit 252253f

Please sign in to comment.