src/middlewares/circuit-breaker.js
function failure(item, err, ctx) {
		item.count++;
		item.failures++;

		checkThreshold(item, ctx);
	}
function failure(item, err, ctx) {
		item.count++;
		item.failures++;

		checkThreshold(item, ctx);
	}
function failure ( item , err , ctx ) { item . count ++ ; item . failures ++ ; checkThreshold ( item , ctx ) ; }
Increment failure counter

@param {Object} item
@param {Error} err
@param {Context} ctx
Increment failure counter