Skip to content

Commit

Permalink
fix format
Browse files Browse the repository at this point in the history
Signed-off-by: ohadvano <[email protected]>
  • Loading branch information
ohadvano committed Mar 3, 2024
1 parent 72a80a7 commit e40950e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
6 changes: 3 additions & 3 deletions envoy/upstream/health_checker.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
5 changes: 2 additions & 3 deletions source/common/upstream/health_checker_event_logger.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit e40950e

Please sign in to comment.