|
|
|
@ -66,7 +66,7 @@ bool XdsDropConfig::ShouldDrop(const UniquePtr<char>** 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.
|
|
|
|
|