瀏覽代碼

Merge pull request #1209 from varun06/consumer-group-typo-fix

fixed a go vet suggestion in consumer group file
Vlad Gorodetsky 7 年之前
父節點
當前提交
cebb5847ef
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      consumer_group.go

+ 1 - 1
consumer_group.go

@@ -83,7 +83,7 @@ func NewConsumerGroup(addrs []string, groupID string, config *Config) (ConsumerG
 	return c, nil
 	return c, nil
 }
 }
 
 
-// NewConsumerFromClient creates a new consumer group using the given client. It is still
+// NewConsumerGroupFromClient creates a new consumer group using the given client. It is still
 // necessary to call Close() on the underlying client when shutting down this consumer.
 // necessary to call Close() on the underlying client when shutting down this consumer.
 // PLEASE NOTE: consumer groups can only re-use but not share clients.
 // PLEASE NOTE: consumer groups can only re-use but not share clients.
 func NewConsumerGroupFromClient(groupID string, client Client) (ConsumerGroup, error) {
 func NewConsumerGroupFromClient(groupID string, client Client) (ConsumerGroup, error) {