rubyist / circuitbreaker

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

configurable sliding window #25

Closed thraxil closed 9 years ago

thraxil commented 9 years ago

The size/granularity of the sliding window for a breaker is hard-coded (https://github.com/rubyist/circuitbreaker/blob/master/circuitbreaker.go#L135). It would be nice to be able to configure that when creating a new breaker.

If I submit a PR for that, are you interested? I think if fields are added to Options, it can be done in a backwards-compatible manner.

rubyist commented 9 years ago

Sure that sounds cool.