(conn *Conn)
| 439 | } |
| 440 | |
| 441 | func (pool *Pool) closeConn(conn *Conn) { |
| 442 | pool.synchro.Lock() |
| 443 | pool.synchro.stats.TotalCount-- |
| 444 | pool.synchro.Unlock() |
| 445 | |
| 446 | _ = conn.Close() // Closing is not an instant action, so do it outside the lock |
| 447 | } |
| 448 | |
| 449 | func (pool *Pool) startNewConnections(count int) error { |
| 450 | connections := make([]Connection, 0, count) |
no test coverage detected