This commit is contained in:
wanglei6 2020-04-30 17:46:50 +08:00
parent 4d5f8a5df3
commit 39881392de
1 changed files with 1 additions and 0 deletions

View File

@ -93,6 +93,7 @@ func NewConnPool(opt *Options) *ConnPool {
idleConns: make([]*Conn, 0, opt.PoolSize),
closedCh: make(chan struct{}),
}
p.connsMu.Lock()
p.checkMinIdleConns()
p.connsMu.Unlock()