From e40950ebe451f15ebf1c6bed046e0979da592a41 Mon Sep 17 00:00:00 2001 From: ohadvano Date: Sun, 3 Mar 2024 16:19:59 +0200 Subject: [PATCH] fix format Signed-off-by: ohadvano --- envoy/upstream/health_checker.h | 6 +++--- source/common/upstream/health_checker_event_logger.cc | 5 ++--- .../health_checkers/common/health_checker_base_impl.cc | 5 ++--- 3 files changed, 7 insertions(+), 9 deletions(-) diff --git a/envoy/upstream/health_checker.h b/envoy/upstream/health_checker.h index a57089434510..f5e3045da79b 100644 --- a/envoy/upstream/health_checker.h +++ b/envoy/upstream/health_checker.h @@ -104,9 +104,9 @@ class HealthCheckEventLogger { * @param health_checker_type supplies the type of health checker that generated the event. * @param host supplies the host that generated the event. */ - virtual void logSuccessfulHealthCheck( - envoy::data::core::v3::HealthCheckerType health_checker_type, - const HostDescriptionConstSharedPtr& host) PURE; + virtual void + logSuccessfulHealthCheck(envoy::data::core::v3::HealthCheckerType health_checker_type, + const HostDescriptionConstSharedPtr& host) PURE; /** * Log a degraded healthy host event. diff --git a/source/common/upstream/health_checker_event_logger.cc b/source/common/upstream/health_checker_event_logger.cc index 2a201f472a54..b6218cb0c07c 100644 --- a/source/common/upstream/health_checker_event_logger.cc +++ b/source/common/upstream/health_checker_event_logger.cc @@ -40,9 +40,8 @@ void HealthCheckEventLoggerImpl::logAddHealthy( void HealthCheckEventLoggerImpl::logSuccessfulHealthCheck( envoy::data::core::v3::HealthCheckerType health_checker_type, const HostDescriptionConstSharedPtr& host) { - createHealthCheckEvent(health_checker_type, *host, [](auto& event) { - event.mutable_successful_health_check_event(); - }); + createHealthCheckEvent(health_checker_type, *host, + [](auto& event) { event.mutable_successful_health_check_event(); }); } void HealthCheckEventLoggerImpl::logDegraded( diff --git a/source/extensions/health_checkers/common/health_checker_base_impl.cc b/source/extensions/health_checkers/common/health_checker_base_impl.cc index 9f1c4ead5c22..262ad36ba947 100644 --- a/source/extensions/health_checkers/common/health_checker_base_impl.cc +++ b/source/extensions/health_checkers/common/health_checker_base_impl.cc @@ -18,9 +18,8 @@ HealthCheckerImplBase::HealthCheckerImplBase(const Cluster& cluster, Random::RandomGenerator& random, HealthCheckEventLoggerPtr&& event_logger) : always_log_health_check_failures_(config.always_log_health_check_failures()), - always_log_health_check_success_(config.always_log_health_check_success()), - cluster_(cluster), dispatcher_(dispatcher), - timeout_(PROTOBUF_GET_MS_REQUIRED(config, timeout)), + always_log_health_check_success_(config.always_log_health_check_success()), cluster_(cluster), + dispatcher_(dispatcher), timeout_(PROTOBUF_GET_MS_REQUIRED(config, timeout)), unhealthy_threshold_(PROTOBUF_GET_WRAPPED_REQUIRED(config, unhealthy_threshold)), healthy_threshold_(PROTOBUF_GET_WRAPPED_REQUIRED(config, healthy_threshold)), stats_(generateStats(cluster.info()->statsScope())), runtime_(runtime), random_(random),