source/common/upstream/health_discovery_service.cc
// TODO(lilika): Add support for subsequent HealthCheckSpecifier messages that
// might modify the HdsClusters
Add support for subsequent HealthCheckSpecifier messages that
might modify the HdsClusters
Add support for subsequent HealthCheckSpecifier messages that might modify the HdsClusters
void HdsDelegate::onReceiveMessage(
    std::unique_ptr<envoy::service::discovery::v2::HealthCheckSpecifier>&& message) {
  stats_.requests_.inc();
  ENVOY_LOG(debug, "New health check response message {} ", message->DebugString());
  hds_clusters_.clear();
  processMessage(std::move(message));
  server_response_ms_ = PROTOBUF_GET_MS_REQUIRED(*message, interval);
  setHdsStreamResponseTimer();
}
void HdsDelegate :: onReceiveMessage ( std :: unique_ptr < envoy :: service :: discovery :: v2 :: HealthCheckSpecifier > && message ) { stats_ . requests_ . inc ( ) ; ENVOY_LOG ( debug , " " , message -> DebugString ( ) ) ; hds_clusters_ . clear ( ) ; processMessage ( std :: move ( message ) ) ; server_response_ms_ = PROTOBUF_GET_MS_REQUIRED ( * message , interval ) ; setHdsStreamResponseTimer ( ) ; }
TODO(lilika): Add support for subsequent HealthCheckSpecifier messages that
might modify the HdsClusters
TODO ( lilika ) : Add support for subsequent HealthCheckSpecifier messages that might modify the HdsClusters
// Reset // Process the HealthCheckSpecifier message // Set response