Skip to content

Commit

Permalink
HOTFIX: remove unnecessary list creation (apache#16117)
Browse files Browse the repository at this point in the history
Removing a redundant list declaration in the new StickyTaskAssignor implementation

Reviewers: Antoine Pourchet <antoine@responsive.dev>
  • Loading branch information
ableegoldman authored May 29, 2024
1 parent d64e3fb commit 9562143
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,7 @@ public TaskAssignment assign(final ApplicationState applicationState) {
finalAssignments.put(clientId, previousAssignment.withFollowupRebalance(Instant.ofEpochMilli(0)));
}

final Collection<KafkaStreamsAssignment> taskAssignments = finalAssignments.entrySet().stream()
.map(Map.Entry::getValue).collect(Collectors.toList());
return new TaskAssignment(taskAssignments);
return new TaskAssignment(finalAssignments.values());
}

private void optimizeActive(final ApplicationState applicationState,
Expand Down

0 comments on commit 9562143

Please sign in to comment.