Skip to content

Commit

Permalink
Revert "Fix a redundant judgment code (apache#5909)"
Browse files Browse the repository at this point in the history
This reverts commit 5312f5f.
  • Loading branch information
xulingfeng931027 authored Apr 1, 2020
1 parent 912303d commit cb981c7
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ protected <T> Invoker<T> doSelect(List<Invoker<T>> invokers, URL url, Invocation
// Accumulate the total weight of the least active invoker
totalWeight += afterWarmup;
// If every invoker has the same weight?
if (sameWeight && afterWarmup != firstWeight) {
if (sameWeight && i > 0
&& afterWarmup != firstWeight) {
sameWeight = false;
}
}
Expand Down

0 comments on commit cb981c7

Please sign in to comment.