Skip to content

Commit

Permalink
chore: clean up some dependenices and lint (#682)
Browse files Browse the repository at this point in the history
This commit removes stray dependencies on codacy and coveralls, and
removes the dependency on tap-spec because of security vulnerabilities.
It has been replaced with `faucet` which seems to be more regularly
updated.

I've also corrected a couple of linting errors and fixed the `npm lint`
command.
  • Loading branch information
lance authored Oct 14, 2022
1 parent dea1553 commit db0004f
Show file tree
Hide file tree
Showing 6 changed files with 625 additions and 1,681 deletions.
9 changes: 0 additions & 9 deletions greenkeeper.json

This file was deleted.

3 changes: 2 additions & 1 deletion lib/circuit.js
Original file line number Diff line number Diff line change
Expand Up @@ -793,7 +793,8 @@ function fail (circuit, err, args, latency) {
const stats = circuit.stats;
if ((stats.fires < circuit.volumeThreshold) && !circuit.halfOpen) return;
const errorRate = stats.failures / stats.fires * 100;
if (errorRate > circuit.options.errorThresholdPercentage || circuit.halfOpen) {
if (errorRate > circuit.options.errorThresholdPercentage ||
circuit.halfOpen) {
circuit.open();
}
}
Expand Down
Loading

0 comments on commit db0004f

Please sign in to comment.