In the Dispatcher.CircuitBreaker class, in the Decrement() method, we can check currentCount and stop the circuit breaker instead of waiting for the timeout to check the level.
This is a slight performance optimization.
Can we define a test that demonstrates the efficacy of this change?
In the
Dispatcher.CircuitBreaker
class, in theDecrement()
method, we can checkcurrentCount
and stop the circuit breaker instead of waiting for the timeout to check the level.This is a slight performance optimization. Can we define a test that demonstrates the efficacy of this change?