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:
Eric Anderson 2024-08-17 10:49:10 -07:00
parent 4914ffc59a
commit 2c93791c98
1 changed files with 1 additions and 5 deletions

View File

@ -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
}
}