Skip to content

Commit

Permalink
more comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jrhee17 committed Jul 16, 2024
1 parent be26926 commit caa6459
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,10 @@ LocalityRoutingState create(PrioritySet upstreamPrioritySet, PrioritySet localPr
final long localPercentToRoute = localLocalityPercentages != null ?
localLocalityPercentages.localPercentToRoute() : 0;
final List<Locality> upstreamLocalities =
upstreamHealthyPerLocality.keySet().stream().filter(locality -> !locality.equals(localLocality))
upstreamHealthyPerLocality.keySet().stream()
.filter(locality -> !locality.equals(localLocality))
// we assume there aren't many localities anyway, so
// we just simply sort by the string-ed value
.sorted(Comparator.comparing(AbstractMessage::toString))
.collect(Collectors.toList());
final ImmutableList.Builder<ResidualCapacity> residualCapacity = ImmutableList.builder();
Expand Down

0 comments on commit caa6459

Please sign in to comment.