nodeshift / opossum-prometheus

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

this._interval is void #67

Open afuechsel opened 2 years ago

afuechsel commented 2 years ago

While creating the types for typescript I was a bit surprised by this line:

    readonly interval: void;

this._interval is set here to the value returned by collectDefaultMetrics. But this is void (see here).

The value from this._interval is then been used here, which does not make any sense, as it is still void.