Skip to content

Commit

Permalink
fix(docs): add back NewWithConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
obitech authored and costela committed Jan 28, 2025
1 parent 52421dd commit 953c6e4
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 953c6e4

Please sign in to comment.