Skip to content

Commit

Permalink
remove duplicate filter in OverloadShedder (#18463)
Browse files Browse the repository at this point in the history
Co-authored-by: lordcheng10 <leolinchen@tencent.com>
  • Loading branch information
lordcheng10 and lordcheng10 committed Nov 15, 2022
1 parent 7712aa3 commit 6efe575
Showing 1 changed file with 1 addition and 3 deletions.
Expand Up @@ -114,9 +114,7 @@ public Multimap<String, String> findBundlesForUnloading(final LoadData loadData,
}).filter(e -> {
// Only consider bundles that were not already unloaded recently
return !recentlyUnloadedBundles.containsKey(e.getLeft());
}).filter(e ->
localData.getBundles().contains(e.getLeft())
).sorted((e1, e2) -> {
}).sorted((e1, e2) -> {
// Sort by throughput in reverse order
return Double.compare(e2.getRight(), e1.getRight());
}).forEach(e -> {
Expand Down

0 comments on commit 6efe575

Please sign in to comment.