Skip to content

Commit

Permalink
Fix: README indendation
Browse files Browse the repository at this point in the history
  • Loading branch information
obitech authored and costela committed Jul 19, 2022
1 parent b0d3c1e commit 3bb0774
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,17 @@ go get github.com/jackc/pgx/[email protected]
Create the tracer as part of your connection:

```go
cfg, err := pgxpool.ParseConfig(connString)
if err != nil {
return nil, fmt.Errorf("create connection pool: %w", err)
}
cfg, err := pgxpool.ParseConfig(connString)
if err != nil {
return nil, fmt.Errorf("create connection pool: %w", err)
}

cfg.ConnConfig.Tracer = otelpgx.NewTracer()
cfg.ConnConfig.Tracer = otelpgx.NewTracer()

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

See [options.go](options.go) for the full list of options.

0 comments on commit 3bb0774

Please sign in to comment.