mirror of
https://github.com/chai2010/advanced-go-programming-book.git
synced 2025-05-24 12:32:21 +00:00
fixed code
This commit is contained in:
parent
b9e1ec32a3
commit
8962389105
@ -285,7 +285,6 @@ func (p *netrpcPlugin) buildServiceSpec(svc *descriptor.ServiceDescriptorProto)
|
||||
|
||||
```go
|
||||
func (p *netrpcPlugin) genServiceCode(svc *descriptor.ServiceDescriptorProto) {
|
||||
for _, svc := range file.Service {
|
||||
spec := p.buildServiceSpec(svc)
|
||||
|
||||
var buf bytes.Buffer
|
||||
@ -296,7 +295,6 @@ func (p *netrpcPlugin) genServiceCode(svc *descriptor.ServiceDescriptorProto) {
|
||||
}
|
||||
|
||||
p.P(buf.String())
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user