Skip to content

Commit

Permalink
fix: fix slice init length (#2734)
Browse files Browse the repository at this point in the history
Signed-off-by: cuishuang <imcusg@gmail.com>
  • Loading branch information
cuishuang authored Sep 28, 2024
1 parent f03922a commit fb4ff16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion proxy/proxy_factory/pass_through.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)))
Expand Down

0 comments on commit fb4ff16

Please sign in to comment.