rubyist / circuitbreaker

Circuit Breakers in Go
MIT License
1.12k stars 109 forks source link

Simplify and fix Call() for rate breaker. #22

Closed Melraidin closed 9 years ago

Melraidin commented 9 years ago

Had no luck getting the rate breaker to close again after opening. This fixes this and removes the half-open logic from Call(), letting Ready() handle it.

rubyist commented 9 years ago

Thanks for the fix! It does make sense to have Call() behave the way you'd use the breaker without Call().