From 8306f723d39eccd898575266c2ed9ddaaf8913d2 Mon Sep 17 00:00:00 2001 From: haozhicui Date: Wed, 4 Dec 2024 21:56:36 +0800 Subject: [PATCH] fix decorator Signed-off-by: haozhicui --- pkg/flow/circuitbreaker_flow.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/flow/circuitbreaker_flow.go b/pkg/flow/circuitbreaker_flow.go index 1c20a59b..a0b5a284 100644 --- a/pkg/flow/circuitbreaker_flow.go +++ b/pkg/flow/circuitbreaker_flow.go @@ -151,7 +151,7 @@ func (df *DefaultFunctionalDecorator) Decorator(ctx context.Context, args interf Duration: delay, Result: ret, } - invoke.OnError(rspCtx) + invoke.OnSuccess(rspCtx) } }()