Automated change: Fix sanity tests

pull/37467/head
markdroth 2 months ago committed by Mark D. Roth
parent d2749acbdb
commit 73dffab5b0
  1. 4
      src/core/xds/xds_client/lrs_client.h

@ -124,12 +124,12 @@ class LrsClient : public DualRefCounted<LrsClient> {
: num_requests_finished_with_metric(num_requests_finished),
total_metric_value(value) {}
BackendMetric(BackendMetric&& other)
BackendMetric(BackendMetric&& other) noexcept
: num_requests_finished_with_metric(
std::exchange(other.num_requests_finished_with_metric, 0)),
total_metric_value(std::exchange(other.total_metric_value, 0)) {}
BackendMetric& operator=(BackendMetric&& other) {
BackendMetric& operator=(BackendMetric&& other) noexcept {
num_requests_finished_with_metric =
std::exchange(other.num_requests_finished_with_metric, 0);
total_metric_value = std::exchange(other.total_metric_value, 0);

Loading…
Cancel
Save