Explorar el Código

grpc: update generated code version

PiperOrigin-RevId: 138096562

Change-Id: I1e52a7bbb12485de97f3552cd89229cca3a950f2
Damien Neil hace 9 años
padre
commit
09b5638faf
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      protoc-gen-go/grpc/grpc.go

+ 2 - 2
protoc-gen-go/grpc/grpc.go

@@ -48,7 +48,7 @@ import (
 // It is incremented whenever an incompatibility between the generated code and
 // It is incremented whenever an incompatibility between the generated code and
 // the grpc package is introduced; the generated code references
 // the grpc package is introduced; the generated code references
 // a constant, grpc.SupportPackageIsVersionN (where N is generatedCodeVersion).
 // a constant, grpc.SupportPackageIsVersionN (where N is generatedCodeVersion).
-const generatedCodeVersion = 3
+const generatedCodeVersion = 4
 
 
 // Paths for packages used by code generated in this file,
 // Paths for packages used by code generated in this file,
 // relative to the import_prefix of the generator.Generator.
 // relative to the import_prefix of the generator.Generator.
@@ -254,7 +254,7 @@ func (g *grpc) generateService(file *generator.FileDescriptor, service *pb.Servi
 		g.P("},")
 		g.P("},")
 	}
 	}
 	g.P("},")
 	g.P("},")
-	g.P("Metadata: ", file.VarName(), ",")
+	g.P("Metadata: \"", file.GetName(), "\",")
 	g.P("}")
 	g.P("}")
 	g.P()
 	g.P()
 }
 }