Skip to content

Commit

Permalink
No need list for constructing EquivalentAddressGroup.
Browse files Browse the repository at this point in the history
  • Loading branch information
voidzcy committed Nov 22, 2019
1 parent f65f047 commit dea0b46
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions xds/src/main/java/io/grpc/xds/EnvoyProtoData.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
import io.envoyproxy.envoy.type.FractionalPercent.DenominatorType;
import io.grpc.EquivalentAddressGroup;
import java.net.InetSocketAddress;
import java.net.SocketAddress;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
Expand Down Expand Up @@ -200,7 +199,7 @@ static final class LbEndpoint {
LbEndpoint(String address, int port, int loadBalancingWeight, boolean isHealthy) {
this(
new EquivalentAddressGroup(
ImmutableList.<SocketAddress>of(new InetSocketAddress(address, port))),
new InetSocketAddress(address, port)),
loadBalancingWeight, isHealthy);
}

Expand Down

0 comments on commit dea0b46

Please sign in to comment.