Skip to content

Commit ae8e47f

Browse files
committed
Fix comments
1 parent df5d0c0 commit ae8e47f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

balance_strategy.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1038,12 +1038,13 @@ nextCand:
10381038
}
10391039

10401040
type consumerGroupMember struct {
1041-
index int // the index of the item in the heap
1041+
index int // the index of the consumer group member on the heap
10421042
id string
10431043
assignments []topicPartitionAssignment
10441044
}
10451045

1046-
// A assignmentPriorityQueue implements heap.Interface and holds Items.
1046+
// assignmentPriorityQueue is a priority-queue of consumer group members that is sorted
1047+
// in descending order (most assignments to least assignments).
10471048
type assignmentPriorityQueue []*consumerGroupMember
10481049

10491050
func (pq assignmentPriorityQueue) Len() int { return len(pq) }

0 commit comments

Comments
 (0)