mirror of https://github.com/grpc/grpc-java.git
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.
This commit is contained in:
parent
4914ffc59a
commit
2c93791c98
|
|
@ -395,12 +395,8 @@ final class PickFirstLeafLoadBalancer extends LoadBalancer {
|
|||
addressIndex.increment();
|
||||
requestConnection();
|
||||
break;
|
||||
case READY: // Shouldn't ever happen
|
||||
log.warning("Requesting a connection even though we have a READY subchannel");
|
||||
break;
|
||||
case SHUTDOWN:
|
||||
default:
|
||||
// Makes checkstyle happy
|
||||
// Wait for current subchannel to change state
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue