Skip to content

Commit 152ecf0

Browse files
committed
fix client closing
1 parent 4d6b0ae commit 152ecf0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stac_fastapi/mongo/stac_fastapi/mongo/database_logic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ async def create_item_index():
7979
f"An error occurred while creating indexes for collection {ITEMS_INDEX}: {e}"
8080
)
8181
finally:
82-
await client.close()
82+
client.close()
8383

8484

8585
def mk_item_id(item_id: str, collection_id: str):

0 commit comments

Comments
 (0)