From 39881392de68490fee9488ae5eb57e5295237c16 Mon Sep 17 00:00:00 2001 From: wanglei6 Date: Thu, 30 Apr 2020 17:46:50 +0800 Subject: [PATCH] code fmt --- internal/pool/pool.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/pool/pool.go b/internal/pool/pool.go index 36f69537..a8d8276a 100644 --- a/internal/pool/pool.go +++ b/internal/pool/pool.go @@ -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()