MCPcopy Index your code
hub / github.com/CodisLabs/codis / newSharedBackendConnPool

Function newSharedBackendConnPool

pkg/proxy/backend.go:496–502  ·  view source on GitHub ↗
(config *Config, parallel int)

Source from the content-addressed store, hash-verified

494}
495
496func 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
504func (p *sharedBackendConnPool) KeepAlive() {
505 for _, bc := range p.pool {

Callers 1

NewRouterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected