From fc52a71c57c569af3be20607b7b498fd7b37ba31 Mon Sep 17 00:00:00 2001 From: cuishuang Date: Fri, 27 Sep 2024 16:59:30 +0800 Subject: [PATCH] fix: fix slice init length Signed-off-by: cuishuang --- proxy/proxy_factory/pass_through.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/proxy_factory/pass_through.go b/proxy/proxy_factory/pass_through.go index 5739e12e3a..fe094693c6 100644 --- a/proxy/proxy_factory/pass_through.go +++ b/proxy/proxy_factory/pass_through.go @@ -101,7 +101,7 @@ func (pi *PassThroughProxyInvoker) Invoke(ctx context.Context, invocation protoc } method := srv.Method()["Service"] - in := make([]reflect.Value, 5) + in := make([]reflect.Value, 0, 5) in = append(in, srv.Rcvr()) in = append(in, reflect.ValueOf(invocation.MethodName())) in = append(in, reflect.ValueOf(invocation.GetAttachmentInterface(constant.ParamsTypeKey)))