Skip to content

Commit

Permalink
Supressed warning for using listening_addresses in Node and added TOD…
Browse files Browse the repository at this point in the history
…O for cleaning it up.
  • Loading branch information
voidzcy committed Sep 21, 2020
1 parent 1f0e0c2 commit 125d96d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions xds/src/main/java/io/grpc/xds/EnvoyProtoData.java
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ static final class Builder {
private Map<String, ?> metadata;
@Nullable
private Locality locality;
// TODO(sanjaypujare): eliminate usage of listening_addresses field.
private final List<Address> listeningAddresses = new ArrayList<>();
private String buildVersion = "";
private String userAgentName = "";
Expand Down
1 change: 1 addition & 0 deletions xds/src/main/java/io/grpc/xds/XdsClientImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,7 @@ private void updateNodeMetadataForListenerRequest(int port) {
newMetadata.putAll(node.getMetadata());
}
newMetadata.put("TRAFFICDIRECTOR_PROXYLESS", "1");
// TODO(sanjaypujare): eliminate usage of listening_addresses.
EnvoyProtoData.Address listeningAddress =
new EnvoyProtoData.Address("0.0.0.0", port);
node =
Expand Down
1 change: 1 addition & 0 deletions xds/src/test/java/io/grpc/xds/EnvoyProtoDataTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ public void locality_equal() {
.testEquals();
}

@SuppressWarnings("deprecation")
@Test
public void convertNode() {
Node node = Node.newBuilder()
Expand Down

0 comments on commit 125d96d

Please sign in to comment.