You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by ba...@apache.org on 2024/09/28 10:03:09 UTC

(dubbo-go) branch main updated: fix: fix slice init length (#2734)

This is an automated email from the ASF dual-hosted git repository.

baerwang pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/dubbo-go.git


The following commit(s) were added to refs/heads/main by this push:
     new fb4ff1624 fix: fix slice init length (#2734)
fb4ff1624 is described below

commit fb4ff1624ac2d0e18a36e8b941019cfab6747441
Author: cui fliter <im...@gmail.com>
AuthorDate: Sat Sep 28 18:03:04 2024 +0800

    fix: fix slice init length (#2734)
    
    Signed-off-by: cuishuang <im...@gmail.com>
---
 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 5739e12e3..fe094693c 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)))