ZYB-J opened a new issue, #2206:
URL: https://github.com/apache/dubbo-go/issues/2206
<!-- Please use this template while reporting a bug and provide as much info
as possible. Not doing so may result in your bug not being addressed in a
timely manner. Thanks!
-->
在生成的xxx_triple.pb.go中。如下代码方法名不一致:
`
func (c *helloWorldServiceClient) HelloWorld(ctx context.Context, in
*JcnString, opts ...grpc.CallOption) (*JcnString, error) {
out := new(JcnString)
err := c.cc.Invoke(ctx,
"/cn.j.chloe.joint.test.HelloWorldService/helloWorld", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
var HelloWorldService_ServiceDesc = grpc.ServiceDesc{
ServiceName: "cn.j.chloe.joint.test.HelloWorldService",
HandlerType: (*HelloWorldServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "helloWorld",
Handler: _HelloWorldService_HelloWorld_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "hello-world.proto",
}
`
而且在grpc-go目录下server.go文件中1661行,把方法名首字母都转换成大写了。
` channelz.Warningf(logger, s.channelzID, "grpc:
Server.handleStream failed to write status: %v", err)
}
if trInfo != nil {
trInfo.tr.Finish()
}
return
}
service := sm[:pos]
method := sm[pos+1:]
method = strings.ToUpper(string(method[0])) + method[1:]`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]