mirror of https://github.com/jackc/pgx.git
commit
c65fd8e2df
|
@ -189,7 +189,7 @@ func ConnectConfig(ctx context.Context, config *Config) (*Pool, error) {
|
||||||
// Initially establish one connection
|
// Initially establish one connection
|
||||||
res, err := p.p.Acquire(ctx)
|
res, err := p.p.Acquire(ctx)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
p.p.Close()
|
p.Close()
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
res.Release()
|
res.Release()
|
||||||
|
|
Loading…
Reference in New Issue