src/server/pkg/pool/pool.go
func (p *Pool) Close() error {
	close(p.done)
	var retErr error
	for _, conn := range p.conns {
		if conn.cc != nil {
			if err := conn.cc.Close(); err != nil {
				retErr = err
			}
		}
	}
	return retErr
}
func (p *Pool) Close() error {
	close(p.done)
	var retErr error
	for _, conn := range p.conns {
		if conn.cc != nil {
			if err := conn.cc.Close(); err != nil {
				retErr = err
			}
		}
	}
	return retErr
}
func ( p * Pool ) Close ( ) error { close ( p . done ) var retErr error for _ , conn := range p . conns { if conn . cc != nil { if err := conn . cc . Close ( ) ; err != nil { retErr = err } } } return retErr }
// Close closes all connections stored in the pool, it returns an error if any
// of the calls to Close error.
Close closes all connections stored in the pool it returns an error if any of the calls to Close error .