(config *Config, parallel int)
| 494 | } |
| 495 | |
| 496 | func newSharedBackendConnPool(config *Config, parallel int) *sharedBackendConnPool { |
| 497 | p := &sharedBackendConnPool{ |
| 498 | config: config, parallel: math2.MaxInt(1, parallel), |
| 499 | } |
| 500 | p.pool = make(map[string]*sharedBackendConn) |
| 501 | return p |
| 502 | } |
| 503 | |
| 504 | func (p *sharedBackendConnPool) KeepAlive() { |
| 505 | for _, bc := range p.pool { |