MCPcopy
hub / github.com/redis/go-redis / SetPool

Method SetPool

maintnotifications/pool_hook.go:83–85  ·  view source on GitHub ↗

SetPool sets the pool interface for removing connections on handoff failure

(pooler pool.Pooler)

Source from the content-addressed store, hash-verified

81
82// SetPool sets the pool interface for removing connections on handoff failure
83func (ph *PoolHook) SetPool(pooler pool.Pooler) {
84 ph.pool = pooler
85}
86
87// GetCurrentWorkers returns the current number of active workers (for testing)
88func (ph *PoolHook) GetCurrentWorkers() int {

Callers 3

TestConnectionHookFunction · 0.95
createPoolHookMethod · 0.80

Calls

no outgoing calls

Tested by 2

TestConnectionHookFunction · 0.76