From a0d8e4032291afdc0c9ec559b577e21697180fbe Mon Sep 17 00:00:00 2001 From: Ian Rees Date: Fri, 20 Sep 2024 17:20:57 -0700 Subject: [PATCH] Fix --- dbutil/db.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dbutil/db.go b/dbutil/db.go index cd505c6..c4e93f6 100644 --- a/dbutil/db.go +++ b/dbutil/db.go @@ -25,8 +25,8 @@ func toSnakeCase(str string) string { return strings.ToLower(snake) } -func OpenDBPool(url string) (*pgxpool.Pool, *sqlx.DB, error) { - pool, err := pgxpool.New(context.Background(), url) +func OpenDBPool(ctx context.Context, url string) (*pgxpool.Pool, *sqlx.DB, error) { + pool, err := pgxpool.New(ctx, url) if err != nil { return nil, nil, err }