Skip to content

Commit

Permalink
Ruff fix
Browse files Browse the repository at this point in the history
  • Loading branch information
uogbuji committed Sep 18, 2024
1 parent a438a2a commit 4933aaf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pylib/embedding/pgvector.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ async def from_conn_string(cls, conn_string, embedding_model, table_name,
and set that as a pool attribute on the created object as a user convenience.
'''
# https://github.com/MagicStack/asyncpg/blob/0a322a2e4ca1c3c3cf6c2cf22b236a6da6c61680/asyncpg/pool.py#L339
pool = await asyncpg.create_pool(conn_string, init=PGVectorHelper.init_pool, min_size=pool_min, max_size=pool_max)
pool = await asyncpg.create_pool(conn_string, init=PGVectorHelper.init_pool,
min_size=pool_min, max_size=pool_max)

new_obj = cls(embedding_model, table_name, pool)
return new_obj
Expand Down

0 comments on commit 4933aaf

Please sign in to comment.