From a5d498c39c5d38811d0b34de38fad54cc9476cac Mon Sep 17 00:00:00 2001 From: Edward Date: Tue, 2 Jun 2020 23:55:28 +0800 Subject: [PATCH] add SuccessShoulder and FailureShoulder --- resiliency/06_circuit_breaker/breaker_options.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/resiliency/06_circuit_breaker/breaker_options.go b/resiliency/06_circuit_breaker/breaker_options.go index d5ef032..b974dc9 100644 --- a/resiliency/06_circuit_breaker/breaker_options.go +++ b/resiliency/06_circuit_breaker/breaker_options.go @@ -22,6 +22,8 @@ type Options struct { MaxRequests uint32 WhenToBreak BreakConditionWatcher //是否应该断开电路(打开电路开关) OnStateChanged StateChangedEventHandler + SuccessShoulder uint32 + FailureShoulder uint32 Ctx context.Context }