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

Method ResetCircuitBreakers

maintnotifications/pool_hook.go:118–120  ·  view source on GitHub ↗

ResetCircuitBreakers resets all circuit breakers (useful for testing)

()

Source from the content-addressed store, hash-verified

116
117// ResetCircuitBreakers resets all circuit breakers (useful for testing)
118func (ph *PoolHook) ResetCircuitBreakers() {
119 ph.workerManager.resetCircuitBreakers()
120}
121
122// OnGet is called when a connection is retrieved from the pool
123func (ph *PoolHook) OnGet(_ context.Context, conn *pool.Conn, _ bool) (accept bool, err error) {

Callers 1

Calls 1

resetCircuitBreakersMethod · 0.80

Tested by 1