sunng87 / diehard

Clojure resilience library for flexible retry, circuit breaker and rate limiter
Eclipse Public License 2.0
330 stars 27 forks source link

Circuit breaker thresholds part 2 #45

Closed mrichards42 closed 3 years ago

mrichards42 commented 3 years ago

Sorry this took a while! Following up on #44 with more docs and a test case.

I also discovered while I was at it that the :failure-threshold-ratio option was ignoring the executions arg, so it was behaving exactly like :failure-threshold. I went ahead and updated that and added a test, but I'm happy to leave that part out or move it to a different PR if you're concerned about introducing a breaking change.

sunng87 commented 3 years ago

@mrichards42 thank you very much!