hs80 commented on code in PR #3052:
URL: https://github.com/apache/dubbo-go/pull/3052#discussion_r2453690345


##########
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:
   已修改



-- 
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]

Reply via email to