diff options
Diffstat (limited to '')
-rw-r--r-- | forged/internal/database/database.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/forged/internal/database/database.go b/forged/internal/database/database.go index 6674fe6..f353fe8 100644 --- a/forged/internal/database/database.go +++ b/forged/internal/database/database.go @@ -19,8 +19,8 @@ type Database struct { // Open opens a new database connection pool using the provided connection // string. It returns a Database instance and an error if any occurs. // It is run indefinitely in the background. -func Open(connString string) (Database, error) { - db, err := pgxpool.New(context.Background(), connString) +func Open(ctx context.Context, config Config) (Database, error) { + db, err := pgxpool.New(ctx, config.Conn) return Database{db}, err } |