From d54e0443bd0984027cd729ac897fa9c7f84d016d Mon Sep 17 00:00:00 2001 From: Ryan Leung Date: Tue, 24 Dec 2024 18:00:55 +0800 Subject: [PATCH] fix Signed-off-by: Ryan Leung --- client/pkg/utils/grpcutil/grpcutil.go | 1 + 1 file changed, 1 insertion(+) diff --git a/client/pkg/utils/grpcutil/grpcutil.go b/client/pkg/utils/grpcutil/grpcutil.go index 5819279e774..235e1088747 100644 --- a/client/pkg/utils/grpcutil/grpcutil.go +++ b/client/pkg/utils/grpcutil/grpcutil.go @@ -74,6 +74,7 @@ func UnaryBackofferInterceptor() grpc.UnaryClientInterceptor { } } +// UnaryCircuitBreakerInterceptor is a gRPC interceptor that adds a circuit breaker to the call. func UnaryCircuitBreakerInterceptor() grpc.UnaryClientInterceptor { return func(ctx context.Context, method string, req, reply any, cc *grpc.ClientConn, invoker grpc.UnaryInvoker, opts ...grpc.CallOption) error { cb := circuitbreaker.FromContext(ctx)