Skip to content

Commit

Permalink
remove use of absl::FunctionRef<> that broke windows builds
Browse files Browse the repository at this point in the history
  • Loading branch information
markdroth committed Sep 26, 2024
1 parent 1e8b534 commit 0c1e889
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
6 changes: 2 additions & 4 deletions src/core/xds/xds_client/lrs_client.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 0c1e889

Please sign in to comment.