Circuit breaker trips erratically and never fully closes

Code reviewHard35 minNetflix and Amazon style

Your task

Review this Go circuit breaker.