ackintosh / ganesha

:elephant: A Circuit Breaker pattern implementation for PHP applications.
https://ackintosh.github.io/ganesha/
MIT License
585 stars 42 forks source link

Better validation for build parameters #58

Closed ackintosh closed 4 years ago

ackintosh commented 4 years ago

The numbers passed to Builder ( e.g. timeWindow, failureRateThreshold and so on) is not validated.

Better validation for the parameters would be helpful to avoid unintensional behavior due to wrong configuration.