Skip to content

Commit 1ebaaac

Browse files
authored
fix(engine): closing of connection pool (#95)
1 parent 9240a14 commit 1ebaaac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/llama_index_cloud_sql_pg/engine.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ def _run_as_sync(self, coro: Awaitable[T]) -> T:
398398

399399
async def close(self) -> None:
400400
"""Dispose of connection pool"""
401-
await self._pool.dispose()
401+
await self._run_as_async(self._pool.dispose())
402402

403403
async def _ainit_doc_store_table(
404404
self,

0 commit comments

Comments
 (0)