Skip to content

Commit

Permalink
clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
markdroth committed Dec 28, 2024
1 parent a2179fc commit 4f6e36a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/core/xds/xds_client/xds_client.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1008,9 +1008,8 @@ void XdsClient::XdsChannel::AdsCall::ParseResource(
if (!decode_status.ok()) {
// If the fail_on_data_errors server feature is present, drop the
// existing cached resource, if any.
const bool drop_cached_resource =
XdsDataErrorHandlingEnabled() &&
xds_channel()->server_.FailOnDataErrors();
const bool drop_cached_resource = XdsDataErrorHandlingEnabled() &&
xds_channel()->server_.FailOnDataErrors();
resource_state.SetNacked(context->version, decode_status.ToString(),
context->update_time_, drop_cached_resource);
++context->num_invalid_resources;
Expand Down Expand Up @@ -1331,9 +1330,10 @@ void XdsClient::ResourceState::SetAcked(
failed_details_.clear();
}

void XdsClient::ResourceState::SetNacked(
const std::string& version, const std::string& details,
Timestamp update_time, bool drop_cached_resource) {
void XdsClient::ResourceState::SetNacked(const std::string& version,
const std::string& details,
Timestamp update_time,
bool drop_cached_resource) {
if (drop_cached_resource) resource_.reset();
client_status_ = ClientResourceStatus::NACKED;
failed_version_ = version;
Expand Down

0 comments on commit 4f6e36a

Please sign in to comment.