From 2a7f593d30e16710763b7062bedb33be0fa7986f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=95=E6=B5=B7=E6=B6=9B?= Date: Tue, 30 Apr 2019 00:08:51 +0800 Subject: [PATCH] update style and doc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 吕海涛 --- api/envoy/config/filter/http/transcoder/v2/transcoder.proto | 1 + .../http/grpc_json_transcoder/json_transcoder_filter.cc | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/api/envoy/config/filter/http/transcoder/v2/transcoder.proto b/api/envoy/config/filter/http/transcoder/v2/transcoder.proto index ad2480cf6415..a7f092d34655 100644 --- a/api/envoy/config/filter/http/transcoder/v2/transcoder.proto +++ b/api/envoy/config/filter/http/transcoder/v2/transcoder.proto @@ -98,6 +98,7 @@ message GrpcJsonTranscoder { // Example : // // .. code-block:: proto + // // package bookstore; // // service Bookstore { diff --git a/source/extensions/filters/http/grpc_json_transcoder/json_transcoder_filter.cc b/source/extensions/filters/http/grpc_json_transcoder/json_transcoder_filter.cc index 0e4b0dd513d3..cb1f1c17fc9f 100644 --- a/source/extensions/filters/http/grpc_json_transcoder/json_transcoder_filter.cc +++ b/source/extensions/filters/http/grpc_json_transcoder/json_transcoder_filter.cc @@ -127,7 +127,9 @@ JsonTranscoderConfig::JsonTranscoderConfig( http_rule.set_body("*"); } - if (!PathMatcherUtility::RegisterByHttpRule(pmb, http_rule, ignored_query_parameters, method)) { + if (!PathMatcherUtility::RegisterByHttpRule(pmb, + http_rule, + ignored_query_parameters, method)) { throw EnvoyException("transcoding_filter: Cannot register '" + method->full_name() + "' to path matcher"); }