Skip to content

Commit

Permalink
Fix pgxpool example in README.md (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidS-ovm committed Aug 22, 2023
1 parent 593df9f commit 5d1347b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ if err != nil {

cfg.ConnConfig.Tracer = otelpgx.NewTracer()

conn, err := pgxpool.NewConfig(ctx, cfg)
conn, err := pgxpool.NewWithConfig(ctx, cfg)
if err != nil {
return nil, fmt.Errorf("connect to database: %w", err)
}
Expand Down

0 comments on commit 5d1347b

Please sign in to comment.