Procházet zdrojové kódy

support ListConsumerGroupOffsets without topicPartition

Dirk Wilden před 6 roky
rodič
revize
86644261a2
1 změnil soubory, kde provedl 3 přidání a 1 odebrání
  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
 	}