From 57c945fd947c7fc9ef8f6f8380897a38133c1dcc Mon Sep 17 00:00:00 2001 From: Edward Date: Tue, 2 Jun 2020 23:58:28 +0800 Subject: [PATCH] remove FailureShoulder and SuccessShoulder --- resiliency/06_circuit_breaker/breaker_options.go | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/resiliency/06_circuit_breaker/breaker_options.go b/resiliency/06_circuit_breaker/breaker_options.go index b974dc9..a337dda 100644 --- a/resiliency/06_circuit_breaker/breaker_options.go +++ b/resiliency/06_circuit_breaker/breaker_options.go @@ -1,3 +1,11 @@ +/* + * @Description: https://github.com/crazybber + * @Author: Edward + * @Date: 2020-06-02 23:57:40 + * @Last Modified by: Edward + * @Last Modified time: 2020-06-02 23:57:40 + */ + package circuit import ( @@ -22,8 +30,6 @@ type Options struct { MaxRequests uint32 WhenToBreak BreakConditionWatcher //是否应该断开电路(打开电路开关) OnStateChanged StateChangedEventHandler - SuccessShoulder uint32 - FailureShoulder uint32 Ctx context.Context }