From 0c1e889bb70b422899bda04166524c678d628c70 Mon Sep 17 00:00:00 2001 From: "Mark D. Roth" Date: Thu, 26 Sep 2024 01:20:52 +0000 Subject: [PATCH] remove use of absl::FunctionRef<> that broke windows builds --- BUILD | 1 - src/core/xds/xds_client/lrs_client.cc | 6 ++---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/BUILD b/BUILD index ac9ed9247995f..2ba2cc83ec2d4 100644 --- a/BUILD +++ b/BUILD @@ -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", diff --git a/src/core/xds/xds_client/lrs_client.cc b/src/core/xds/xds_client/lrs_client.cc index ebcb609217e90..d8059321d9edf 100644 --- a/src/core/xds/xds_client/lrs_client.cc +++ b/src/core/xds/xds_client/lrs_client.cc @@ -22,7 +22,6 @@ #include #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 - 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);