Skip to content

Commit

Permalink
forgot to use the passed-in dburl
Browse files Browse the repository at this point in the history
  • Loading branch information
lilydjwg committed Sep 9, 2024
1 parent 53ed81a commit 19534ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lilac2/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ def connect_with_schema(schema, dsn):
cur.execute(f"set search_path to '{schema}'")
return conn

def setup(engine, schema):
def setup(dsn, schema):
global USE, Pool, SCHEMA
Pool = psycopg2.pool.ThreadedConnectionPool(
1, 10, '', partial(connect_with_schema, schema))
1, 10, dsn, partial(connect_with_schema, schema))
USE = True

@contextmanager
Expand Down

0 comments on commit 19534ad

Please sign in to comment.