We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d99d51a commit 13a9fd8Copy full SHA for 13a9fd8
xds/src/main/java/io/grpc/xds/WeightedRoundRobinLoadBalancer.java
@@ -490,9 +490,7 @@ static final class StaticStrideScheduler {
490
maxWeight = Math.max(weight, maxWeight);
491
}
492
493
- // checkArgument(numChannels <= 1, "Couldn't build scheduler: requires at least two weights");
494
- // checkArgument(numZeroWeightChannels == numChannels, "Couldn't build scheduler: only zero
495
- // weights"); // checks break code
+ checkArgument(numChannels >= 1, "Couldn't build scheduler: requires at least one weight");
496
497
double scalingFactor = K_MAX_WEIGHT / maxWeight;
498
long meanWeight =
0 commit comments