Skip to content

Commit

Permalink
Update protoc-gen-grpc-gateway/gengateway/template.go
Browse files Browse the repository at this point in the history
Co-Authored-By: Johan Brandhorst <johan.brandhorst@gmail.com>
  • Loading branch information
hb-chen and johanbrandhorst committed Aug 28, 2019
1 parent 8baf57f commit 36f62ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion protoc-gen-grpc-gateway/gengateway/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ func local_request_{{.Method.Service.GetName}}_{{.Method.GetName}}_{{.Index}}(ct
//
// Register{{$svc.GetName}}{{$.RegisterFuncSuffix}}Server does not support stream rpc call directly, and grpc-go have an issue "Feature Request:
// Add support for In-Process transport #906". So it is currently EXPERIMENTAL and subject to change.
func Register{{$svc.GetName}}{{$.RegisterFuncSuffix}}Server(ctx context.Context, mux *runtime.ServeMux, server {{$svc.GetName}}Server, opts []grpc.DialOption) error {
func Register{{$svc.GetName}}{{$.RegisterFuncSuffix}}Server(ctx context.Context, mux *runtime.ServeMux, server {{$svc.GetName}}Server, opts []grpc.DialOption) (err error) {
{{$streaming := 0}}
{{range $m := $svc.Methods}}
{{if or $m.GetClientStreaming $m.GetServerStreaming}}
Expand Down

0 comments on commit 36f62ac

Please sign in to comment.