always generate call with CamelCased name

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
Василий Толстов 2020-10-12 16:19:30 +03:00
parent 6e43ae7190
commit 62502ad720

View File

@ -335,8 +335,8 @@ func (g *micro) generateClientSignature(servName string, method *pb.MethodDescri
} }
func (g *micro) generateClientMethod(reqServ, servName, serviceDescVar string, method *pb.MethodDescriptorProto, descExpr string) { func (g *micro) generateClientMethod(reqServ, servName, serviceDescVar string, method *pb.MethodDescriptorProto, descExpr string) {
reqMethod := fmt.Sprintf("%s.%s", servName, method.GetName())
methName := generator.CamelCase(method.GetName()) methName := generator.CamelCase(method.GetName())
reqMethod := fmt.Sprintf("%s.%s", servName, methName)
inType := g.typeName(method.GetInputType()) inType := g.typeName(method.GetInputType())
outType := g.typeName(method.GetOutputType()) outType := g.typeName(method.GetOutputType())