Merge pull request #20341 from AspirinSJL/server_name

Change param name
pull/20349/head
Juanli Shen 5 years ago committed by GitHub
commit a53effeeaa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/core/ext/filters/client_channel/lb_policy/xds/xds_load_balancer_api.cc
  2. 2
      src/core/ext/filters/client_channel/lb_policy/xds/xds_load_balancer_api.h

@ -66,7 +66,7 @@ bool XdsDropConfig::ShouldDrop(const UniquePtr<char>** category_name) const {
return false; return false;
} }
grpc_slice XdsEdsRequestCreateAndEncode(const char* service_name) { grpc_slice XdsEdsRequestCreateAndEncode(const char* server_name) {
upb::Arena arena; upb::Arena arena;
// Create a request. // Create a request.
envoy_api_v2_DiscoveryRequest* 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_Struct_FieldsEntry_mutable_value(field, arena.ptr());
google_protobuf_Value_set_bool_value(value, true); google_protobuf_Value_set_bool_value(value, true);
envoy_api_v2_DiscoveryRequest_add_resource_names( 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, envoy_api_v2_DiscoveryRequest_set_type_url(request,
upb_strview_makez(kEdsTypeUrl)); upb_strview_makez(kEdsTypeUrl));
// Encode the request. // Encode the request.

@ -99,7 +99,7 @@ struct XdsUpdate {
}; };
// Creates an EDS request querying \a service_name. // 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 // Parses the EDS response and returns the args to update locality map. If there
// is any error, the output update is invalid. // is any error, the output update is invalid.

Loading…
Cancel
Save