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