mirror of https://github.com/jackc/pgx.git
Merge pull request #561 from furdarius/reuse-conninfo-in-pool
Reuse pool.connInfo for createConnectionUnlocked methodpull/565/head
commit
6954c15ad0
|
@ -319,7 +319,7 @@ func (p *ConnPool) createConnection() (*Conn, error) {
|
|||
func (p *ConnPool) createConnectionUnlocked() (*Conn, error) {
|
||||
p.inProgressConnects++
|
||||
p.cond.L.Unlock()
|
||||
c, err := Connect(p.config)
|
||||
c, err := connect(p.config, p.connInfo.DeepCopy())
|
||||
p.cond.L.Lock()
|
||||
p.inProgressConnects--
|
||||
|
||||
|
|
Loading…
Reference in New Issue