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 b1af148 commit 8baf57f
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 @@ -545,7 +545,7 @@ func local_request_{{.Method.Service.GetName}}_{{.Method.GetName}}_{{.Index}}(ct
{{range $svc := .Services}}
// Register{{$svc.GetName}}{{$.RegisterFuncSuffix}}Server registers the http handlers for service {{$svc.GetName}} to "mux".
// UnaryRPC :call {{$svc.GetName}}Server directly.
// StreamingRPC :need dial the same port for grpc.Server, we can use bufconn package(grpc-go/test/bufconn).
// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.
// If the gateway proto have stream must add DialOption grpc.WithContextDialer. e.g.
//
// bcLis := bufconn.Listen(1024 * 1024)
Expand Down

0 comments on commit 8baf57f

Please sign in to comment.