Browse Source

Fix comments

Scott Kidder 6 năm trước cách đây
mục cha
commit
ae8e47f3da
1 tập tin đã thay đổi với 3 bổ sung2 xóa
  1. 3 2
      balance_strategy.go

+ 3 - 2
balance_strategy.go

@@ -1038,12 +1038,13 @@ nextCand:
 }
 
 type consumerGroupMember struct {
-	index       int // the index of the item in the heap
+	index       int // the index of the consumer group member on the heap
 	id          string
 	assignments []topicPartitionAssignment
 }
 
-// A assignmentPriorityQueue implements heap.Interface and holds Items.
+// assignmentPriorityQueue is a priority-queue of consumer group members that is sorted
+// in descending order (most assignments to least assignments).
 type assignmentPriorityQueue []*consumerGroupMember
 
 func (pq assignmentPriorityQueue) Len() int { return len(pq) }