Browse Source

support ListConsumerGroupOffsets without topicPartition

Dirk Wilden 6 năm trước cách đây
mục cha
commit
86644261a2
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      admin.go

+ 3 - 1
admin.go

@@ -608,7 +608,9 @@ func (ca *clusterAdmin) ListConsumerGroupOffsets(group string, topicPartitions m
 		partitions:    topicPartitions,
 	}
 
-	if ca.conf.Version.IsAtLeast(V0_8_2_2) {
+	if ca.conf.Version.IsAtLeast(V0_10_2_0) {
+		request.Version = 2
+	} else if ca.conf.Version.IsAtLeast(V0_8_2_2) {
 		request.Version = 1
 	}