nodeshift / opossum-prometheus

Prometheus metrics for opossum circuit breakers
Apache License 2.0
21 stars 13 forks source link

Pass in a circuit not as an array #4

Closed lholmquist closed 5 years ago

lholmquist commented 5 years ago

Currently, when we pass in circuits to the constructor, we have to pass them in as an Array of circuits. This is fine if there is more than one circuit.

It shouldn't be to hard to modify the constructor to be able to pass a single circuit without the need to wrap it in an array.