Skip to content

Commit 672c6d3

Browse files
committed
use reconcile context for psql connect
1 parent 9ccf80e commit 672c6d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/db/postgresql.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ func NewPostgreSQLRepository(ctx context.Context, uri, database, username, passw
4646
opt.Path = database
4747
}
4848

49-
dbpool, err := pgxpool.Connect(context.Background(), opt.String())
49+
dbpool, err := pgxpool.Connect(ctx, opt.String())
5050
if err != nil {
5151
return nil, err
5252
}

0 commit comments

Comments
 (0)