Skip to content

Commit e3727db

Browse files
committed
util: Use CONNECTING_RESULT in RoundRobinLoadBalancer to fix unused variable warning
1 parent 3584743 commit e3727db

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

util/src/main/java/io/grpc/util/RoundRobinLoadBalancer.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@
4141
* EquivalentAddressGroup}s from the {@link NameResolver}.
4242
*/
4343
final class RoundRobinLoadBalancer extends MultiChildLoadBalancer {
44-
private static final PickResult CONNECTING_RESULT =
45-
PickResult.withNoResult("connecting", "round_robin: attempting to connect");
44+
private static final PickResult CONNECTING_RESULT = PickResult.withNoResult("connecting",
45+
"round_robin connecting: TCP/TLS handshake in progress to child balancers");
4646
private final AtomicInteger sequence = new AtomicInteger(new Random().nextInt());
4747
private SubchannelPicker currentPicker = new FixedResultPicker(connectingResult());
4848

@@ -51,8 +51,7 @@ public RoundRobinLoadBalancer(Helper helper) {
5151
}
5252

5353
private PickResult connectingResult() {
54-
return PickResult.withNoResult("connecting",
55-
"round_robin connecting: TCP/TLS handshake in progress to child balancers");
54+
return CONNECTING_RESULT;
5655
}
5756

5857
/**

0 commit comments

Comments
 (0)