From 1ecc111e17995b5aba2e0b7b1fd57c616f9172a7 Mon Sep 17 00:00:00 2001 From: Artemiy Ryabinkov Date: Sun, 14 Jul 2019 18:29:08 +0300 Subject: [PATCH] Reuse pool.connInfo for createConnectionUnlocked method Signed-off-by: Artemiy Ryabinkov --- conn_pool.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conn_pool.go b/conn_pool.go index 47a0b391..d43b6337 100644 --- a/conn_pool.go +++ b/conn_pool.go @@ -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) p.cond.L.Lock() p.inProgressConnects--