Skip to content

Commit

Permalink
fix: Added open pool outside init
Browse files Browse the repository at this point in the history
Signed-off-by: carlos.vdr <[email protected]>
  • Loading branch information
carlosvdr committed Nov 15, 2023
1 parent 216a27e commit 7cd6f52
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions autoagora/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,9 @@ async def allocated_subgraph_watcher():
)

pgpool = psycopg_pool.AsyncConnectionPool(
conn_string,
min_size=1,
max_size=args.postgres_max_connections,
conn_string, min_size=1, max_size=args.postgres_max_connections, open=False
)
await pgpool.open()
await pgpool.wait()
assert pgpool
except:
Expand Down

0 comments on commit 7cd6f52

Please sign in to comment.