AlexStocks commented on code in PR #3052:
URL: https://github.com/apache/dubbo-go/pull/3052#discussion_r2451815772
##########
tools/protoc-gen-go-triple/gen/generator/genTriple.go:
##########
@@ -59,21 +56,22 @@ func (g *Generator) generateToFile(filePath string, data
[]byte) error {
return util.GoFmtFile(filePath)
}
-func ProcessProtoFile(file *descriptor.FileDescriptorProto) (TripleGo, error) {
+func ProcessProtoFile(g *protogen.GeneratedFile, f *protogen.File) (TripleGo,
error) {
+ file := f.Proto
tripleGo := TripleGo{
Source: file.GetName(),
ProtoPackage: file.GetPackage(),
Services: make([]Service, 0),
}
- for _, service := range file.GetService() {
+ for k_s, service := range file.GetService() {
Review Comment:
k_s 别取这种名字,你把这段代码粘贴到 chatgpt,可以咨询下,让它给你改个更合适的名字
--
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]