Skip to content

Commit

Permalink
fix: fix slice init length
Browse files Browse the repository at this point in the history
Signed-off-by: cuishuang <[email protected]>
  • Loading branch information
cuishuang committed Sep 27, 2024
1 parent f03922a commit fc52a71
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 fc52a71

Please sign in to comment.