remove use of absl::FunctionRef<> that broke windows builds

pull/37467/head
Mark D. Roth 2 months ago
parent 1e8b534734
commit 0c1e889bb7
  1. 1
      BUILD
  2. 6
      src/core/xds/xds_client/lrs_client.cc

@ -4415,7 +4415,6 @@ grpc_cc_library(
external_deps = [
"absl/base:core_headers",
"absl/cleanup",
"absl/functional:function_ref",
"absl/log:check",
"absl/log:log",
"absl/memory",

@ -22,7 +22,6 @@
#include <vector>
#include "absl/cleanup/cleanup.h"
#include "absl/functional/function_ref.h"
#include "absl/log/check.h"
#include "absl/log/log.h"
#include "absl/strings/string_view.h"
@ -1099,9 +1098,8 @@ namespace {
void MaybeAddUnnamedMetric(
const LrsApiContext& context,
const LrsClient::ClusterLocalityStats::BackendMetric& backend_metric,
absl::FunctionRef<envoy_config_endpoint_v3_UnnamedEndpointLoadMetricStats*(
envoy_config_endpoint_v3_UpstreamLocalityStats*, upb_Arena*)>
add_field,
envoy_config_endpoint_v3_UnnamedEndpointLoadMetricStats* (*add_field)(
envoy_config_endpoint_v3_UpstreamLocalityStats*, upb_Arena*),
envoy_config_endpoint_v3_UpstreamLocalityStats* output) {
if (backend_metric.IsZero()) return;
auto* metric_proto = add_field(output, context.arena);

Loading…
Cancel
Save