From a694091c397a6ec5cbda1d2f047b33e4b2336e77 Mon Sep 17 00:00:00 2001 From: Tony Allen Date: Fri, 2 Aug 2019 17:23:01 -0700 Subject: [PATCH] fix format Signed-off-by: Tony Allen --- .../adaptive_concurrency_filter.cc | 11 ++++++----- .../adaptive_concurrency_filter.h | 4 ++-- .../filters/http/adaptive_concurrency/config.cc | 3 ++- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/source/extensions/filters/http/adaptive_concurrency/adaptive_concurrency_filter.cc b/source/extensions/filters/http/adaptive_concurrency/adaptive_concurrency_filter.cc index 25cb40463848..dd6a979cbaac 100644 --- a/source/extensions/filters/http/adaptive_concurrency/adaptive_concurrency_filter.cc +++ b/source/extensions/filters/http/adaptive_concurrency/adaptive_concurrency_filter.cc @@ -25,7 +25,8 @@ AdaptiveConcurrencyFilter::AdaptiveConcurrencyFilter( AdaptiveConcurrencyFilter::~AdaptiveConcurrencyFilter() {} -Http::FilterHeadersStatus AdaptiveConcurrencyFilter::decodeHeaders(Http::HeaderMap&, bool end_stream) { +Http::FilterHeadersStatus AdaptiveConcurrencyFilter::decodeHeaders(Http::HeaderMap&, + bool end_stream) { if (!end_stream) { return Http::FilterHeadersStatus::Continue; } @@ -36,9 +37,8 @@ Http::FilterHeadersStatus AdaptiveConcurrencyFilter::decodeHeaders(Http::HeaderM } // TODO (tonya11en): Remove filler words. - decoder_callbacks_->sendLocalReply( - Http::Code::ServiceUnavailable, "filler words", nullptr, - absl::nullopt, "more filler words"); + decoder_callbacks_->sendLocalReply(Http::Code::ServiceUnavailable, "filler words", nullptr, + absl::nullopt, "more filler words"); return Http::FilterHeadersStatus::StopIteration; } @@ -49,7 +49,8 @@ void AdaptiveConcurrencyFilter::onDestroy() { Http::FilterHeadersStatus AdaptiveConcurrencyFilter::encodeHeaders(Http::HeaderMap&, bool end_stream) { if (end_stream) { - const std::chrono::nanoseconds rq_latency = config_->timeSource().monotonicTime() - rq_start_time_; + const std::chrono::nanoseconds rq_latency = + config_->timeSource().monotonicTime() - rq_start_time_; controller_->recordLatencySample(rq_latency); } diff --git a/source/extensions/filters/http/adaptive_concurrency/adaptive_concurrency_filter.h b/source/extensions/filters/http/adaptive_concurrency/adaptive_concurrency_filter.h index 3f588184989f..8fb259a1070d 100644 --- a/source/extensions/filters/http/adaptive_concurrency/adaptive_concurrency_filter.h +++ b/source/extensions/filters/http/adaptive_concurrency/adaptive_concurrency_filter.h @@ -6,13 +6,13 @@ #include #include +#include "envoy/common/time.h" +#include "envoy/config/filter/http/adaptive_concurrency/v2alpha/adaptive_concurrency.pb.h" #include "envoy/http/filter.h" #include "envoy/runtime/runtime.h" #include "envoy/stats/scope.h" -#include "envoy/common/time.h" #include "envoy/stats/stats_macros.h" -#include "envoy/config/filter/http/adaptive_concurrency/v2alpha/adaptive_concurrency.pb.h" #include "extensions/filters/http/adaptive_concurrency/concurrency_controller/concurrency_controller.h" namespace Envoy { diff --git a/source/extensions/filters/http/adaptive_concurrency/config.cc b/source/extensions/filters/http/adaptive_concurrency/config.cc index 70a7c22575a7..95929df82ad2 100644 --- a/source/extensions/filters/http/adaptive_concurrency/config.cc +++ b/source/extensions/filters/http/adaptive_concurrency/config.cc @@ -19,7 +19,8 @@ Http::FilterFactoryCb AdaptiveConcurrencyFilterFactory::createFilterFactoryFromP // TODO (tonya11en): Noop controller needs to be replaced with an actual // implementation in a future patch. - auto noop_ctl = std::make_shared(); + std::shared_ptr noop_ctl = + std::make_shared(); AdaptiveConcurrencyFilterConfigSharedPtr filter_config(new AdaptiveConcurrencyFilterConfig( config, context.runtime(), stats_prefix, context.scope(), context.timeSource()));