diff --git a/src/core/ext/filters/client_channel/lb_policy/xds/xds_load_balancer_api.cc b/src/core/ext/filters/client_channel/lb_policy/xds/xds_load_balancer_api.cc index 16d5f9a1391..bf4b4f9ae8a 100644 --- a/src/core/ext/filters/client_channel/lb_policy/xds/xds_load_balancer_api.cc +++ b/src/core/ext/filters/client_channel/lb_policy/xds/xds_load_balancer_api.cc @@ -66,7 +66,7 @@ bool XdsDropConfig::ShouldDrop(const UniquePtr** category_name) const { return false; } -grpc_slice XdsEdsRequestCreateAndEncode(const char* service_name) { +grpc_slice XdsEdsRequestCreateAndEncode(const char* server_name) { upb::Arena arena; // Create a request. envoy_api_v2_DiscoveryRequest* request = @@ -83,7 +83,7 @@ grpc_slice XdsEdsRequestCreateAndEncode(const char* service_name) { google_protobuf_Struct_FieldsEntry_mutable_value(field, arena.ptr()); google_protobuf_Value_set_bool_value(value, true); envoy_api_v2_DiscoveryRequest_add_resource_names( - request, upb_strview_makez(service_name), arena.ptr()); + request, upb_strview_makez(server_name), arena.ptr()); envoy_api_v2_DiscoveryRequest_set_type_url(request, upb_strview_makez(kEdsTypeUrl)); // Encode the request. diff --git a/src/core/ext/filters/client_channel/lb_policy/xds/xds_load_balancer_api.h b/src/core/ext/filters/client_channel/lb_policy/xds/xds_load_balancer_api.h index 759c04cd71f..b48aa60c3cd 100644 --- a/src/core/ext/filters/client_channel/lb_policy/xds/xds_load_balancer_api.h +++ b/src/core/ext/filters/client_channel/lb_policy/xds/xds_load_balancer_api.h @@ -99,7 +99,7 @@ struct XdsUpdate { }; // Creates an EDS request querying \a service_name. -grpc_slice XdsEdsRequestCreateAndEncode(const char* service_name); +grpc_slice XdsEdsRequestCreateAndEncode(const char* server_name); // Parses the EDS response and returns the args to update locality map. If there // is any error, the output update is invalid.