mirror of
https://github.com/redis/go-redis.git
synced 2025-08-01 16:06:54 +03:00
code fmt
This commit is contained in:
@ -93,6 +93,7 @@ func NewConnPool(opt *Options) *ConnPool {
|
|||||||
idleConns: make([]*Conn, 0, opt.PoolSize),
|
idleConns: make([]*Conn, 0, opt.PoolSize),
|
||||||
closedCh: make(chan struct{}),
|
closedCh: make(chan struct{}),
|
||||||
}
|
}
|
||||||
|
|
||||||
p.connsMu.Lock()
|
p.connsMu.Lock()
|
||||||
p.checkMinIdleConns()
|
p.checkMinIdleConns()
|
||||||
p.connsMu.Unlock()
|
p.connsMu.Unlock()
|
||||||
|
Reference in New Issue
Block a user