Skip to content

Commit 7095ff2

Browse files
committed
fix: ensure asynchronous closing of database connection in delete_builds method
1 parent 0ad2d84 commit 7095ff2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

biothings/hub/dataindex/mongo_build_cleanup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ async def delete_builds(self, build_ids):
4646
result = await src_build.delete_many({"_id": {"$in": build_ids}})
4747
return {"deleted_count": result.deleted_count}
4848
finally:
49-
conn.close()
49+
await conn.close()
5050

5151
def done(self, future):
5252
try:

0 commit comments

Comments
 (0)