Skip to content

Commit 2c93791

Browse files
committed
core: PF.requestConnection() is possible when READY
requestConnection() is public API, and it is allowed to be called even if the load balancer is already READY.
1 parent 4914ffc commit 2c93791

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

core/src/main/java/io/grpc/internal/PickFirstLeafLoadBalancer.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -395,12 +395,8 @@ public void requestConnection() {
395395
addressIndex.increment();
396396
requestConnection();
397397
break;
398-
case READY: // Shouldn't ever happen
399-
log.warning("Requesting a connection even though we have a READY subchannel");
400-
break;
401-
case SHUTDOWN:
402398
default:
403-
// Makes checkstyle happy
399+
// Wait for current subchannel to change state
404400
}
405401
}
406402

0 commit comments

Comments
 (0)