Skip to content

Commit

Permalink
Remove null
Browse files Browse the repository at this point in the history
Signed-off-by: Rishab Nahata <rnnahata@amazon.com>
  • Loading branch information
imRishN committed Aug 28, 2024
1 parent 9a101b9 commit 72a10b4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ public ShardAllocationDecision decideShardAllocation(final ShardRouting shard, f
preferPrimaryShardBalance,
preferPrimaryShardRebalance,
ignoreThrottleInRestore,
null // as we don't need to check if timed out or not while just understanding ShardAllocationDecision
x -> false // as we don't need to check if timed out or not while just understanding ShardAllocationDecision
);
AllocateUnassignedDecision allocateUnassignedDecision = AllocateUnassignedDecision.NOT_TAKEN;
MoveDecision moveDecision = MoveDecision.NOT_TAKEN;
Expand Down Expand Up @@ -625,7 +625,7 @@ public Balancer(
float threshold,
boolean preferPrimaryBalance
) {
super(logger, allocation, shardMovementStrategy, weight, threshold, preferPrimaryBalance, false, false, null);
super(logger, allocation, shardMovementStrategy, weight, threshold, preferPrimaryBalance, false, false, x -> false);
}
}

Expand Down

0 comments on commit 72a10b4

Please sign in to comment.