Skip to content

Commit

Permalink
Rename consumersByPlacement -> placementConsumers
Browse files Browse the repository at this point in the history
Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>
  • Loading branch information
pierDipi committed Jan 10, 2022
1 parent 628aafc commit 6f5c949
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions control-plane/pkg/reconciler/consumergroup/consumergroup.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ func (r Reconciler) reconcileConsumers(ctx context.Context, cg *kafkainternals.C
return cg.MarkReconcileConsumersFailed("ListConsumers", err)
}

consumersByPlacement := r.joinConsumersByPlacement(cg.Status.Placements, existingConsumers)
placementConsumers := r.joinConsumersByPlacement(cg.Status.Placements, existingConsumers)

for _, pc := range consumersByPlacement {
for _, pc := range placementConsumers {
if pc.Placement == nil {
for _, c := range pc.Consumers {
if err := r.finalizeConsumer(ctx, c); err != nil {
Expand Down

0 comments on commit 6f5c949

Please sign in to comment.