Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
irees committed Sep 26, 2024
2 parents 503de7e + a0d8e40 commit c077a48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dbutil/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit c077a48

Please sign in to comment.