Skip to content

Commit

Permalink
add comments to distinguish drpc generated code
Browse files Browse the repository at this point in the history
Change-Id: I938d4ebec515dafd0834a05532de51cc513c8c6c
  • Loading branch information
egonelbre committed Feb 26, 2020
1 parent 9dc9927 commit 368f26c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/protoc-gen-drpc/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ func (d *drpc) Generate(file *generator.FileDescriptor) {
d.drpcServer = d.drpcPkg + ".Server"
d.contextPkg = string(d.AddImport("context"))

d.P("// --- DRPC BEGIN ---\n")
defer d.P("// --- DRPC END ---\n")

for i, service := range file.FileDescriptorProto.Service {
d.generateService(file, service, i)
}
Expand Down

0 comments on commit 368f26c

Please sign in to comment.