We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df5d0c0 commit ae8e47fCopy full SHA for ae8e47f
balance_strategy.go
@@ -1038,12 +1038,13 @@ nextCand:
1038
}
1039
1040
type consumerGroupMember struct {
1041
- index int // the index of the item in the heap
+ index int // the index of the consumer group member on the heap
1042
id string
1043
assignments []topicPartitionAssignment
1044
1045
1046
-// A assignmentPriorityQueue implements heap.Interface and holds Items.
+// assignmentPriorityQueue is a priority-queue of consumer group members that is sorted
1047
+// in descending order (most assignments to least assignments).
1048
type assignmentPriorityQueue []*consumerGroupMember
1049
1050
func (pq assignmentPriorityQueue) Len() int { return len(pq) }
0 commit comments