Procházet zdrojové kódy

Update godoc for Client.Coordinator and Client.RefreshCoordinator

Willem van Bergen před 10 roky
rodič
revize
e493c2606a
1 změnil soubory, kde provedl 2 přidání a 0 odebrání
  1. 2 0
      client.go

+ 2 - 0
client.go

@@ -45,9 +45,11 @@ type Client interface {
 
 
 	// Coordinator returns the coordinating broker for a consumer group. It will return a locally cached
 	// Coordinator returns the coordinating broker for a consumer group. It will return a locally cached
 	// value if it's available. You can call RefreshCoordinator to update the cached value.
 	// value if it's available. You can call RefreshCoordinator to update the cached value.
+	// This function only works on Kafka 0.8.2 and higher.
 	Coordinator(consumerGroup string) (*Broker, error)
 	Coordinator(consumerGroup string) (*Broker, error)
 
 
 	// RefreshCoordinator retrieves the coordinator for a consumer group and stores it in local cache.
 	// RefreshCoordinator retrieves the coordinator for a consumer group and stores it in local cache.
+	// This function only works on Kafka 0.8.2 and higher.
 	RefreshCoordinator(consumerGroup string) error
 	RefreshCoordinator(consumerGroup string) error
 
 
 	// Close shuts down all broker connections managed by this client. It is required to call this function before
 	// Close shuts down all broker connections managed by this client. It is required to call this function before