Skip to content

Commit

Permalink
Added suggestion from review
Browse files Browse the repository at this point in the history
  • Loading branch information
ecojan committed Feb 7, 2022
1 parent c2cfeb3 commit 37d010b
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -593,11 +593,8 @@ public void run() {

ClusterModel clusterModel = null;
// We check for Intra broker goals among Default goals - if we have intra broker goals, set replicaPlacementInfo to true
if (containsIntraBrokerGoal(_goalsByPriority)) {
clusterModel = _loadMonitor.clusterModel(_time.milliseconds(), requirements, _allowCapacityEstimation, true, operationProgress);
} else {
clusterModel = _loadMonitor.clusterModel(_time.milliseconds(), requirements, _allowCapacityEstimation, operationProgress);
}
clusterModel = _loadMonitor.clusterModel(_time.milliseconds(), requirements, _allowCapacityEstimation,
containsIntraBrokerGoal(_goalsByPriority), operationProgress);

if (!clusterModel.topics().isEmpty()) {
OptimizerResult result = optimizations(clusterModel, _goalsByPriority, operationProgress);
Expand Down

0 comments on commit 37d010b

Please sign in to comment.