Browse Source

support ListConsumerGroupOffsets without topicPartition

Dirk Wilden 6 years ago
parent
commit
86644261a2
1 changed files with 3 additions and 1 deletions
  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
 	}