Skip to content

Commit

Permalink
protoc-gen-go/grpc: pass file descriptor for service as Metadata
Browse files Browse the repository at this point in the history
Bump support package version number from 2 to 3.
  • Loading branch information
menghanl authored and zombiezen committed Jun 14, 2016
1 parent 5386fff commit 0c1f6d6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion protoc-gen-go/grpc/grpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ import (
// It is incremented whenever an incompatibility between the generated code and
// the grpc package is introduced; the generated code references
// a constant, grpc.SupportPackageIsVersionN (where N is generatedCodeVersion).
const generatedCodeVersion = 2
const generatedCodeVersion = 3

// Paths for packages used by code generated in this file,
// relative to the import_prefix of the generator.Generator.
Expand Down Expand Up @@ -254,6 +254,7 @@ func (g *grpc) generateService(file *generator.FileDescriptor, service *pb.Servi
g.P("},")
}
g.P("},")
g.P("Metadata: ", file.VarName(), ",")
g.P("}")
g.P()
}
Expand Down

0 comments on commit 0c1f6d6

Please sign in to comment.