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