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

		if (item.state === C.CIRCUIT_HALF_OPEN_WAIT)
			circuitClose(item, ctx);
		else
			checkThreshold(item, ctx);
	}
function success(item, ctx) {
		item.count++;

		if (item.state === C.CIRCUIT_HALF_OPEN_WAIT)
			circuitClose(item, ctx);
		else
			checkThreshold(item, ctx);
	}
function success ( item , ctx ) { item . count ++ ; if ( item . state === C . CIRCUIT_HALF_OPEN_WAIT ) circuitClose ( item , ctx ) ; else checkThreshold ( item , ctx ) ; }
Increment request counter and switch CB to CLOSE if it is on HALF_OPEN_WAIT.

@param {Object} item
@param {Context} ctx
Increment request counter and switch CB to CLOSE if it is on HALF_OPEN_WAIT .