[skip ci]Add comments for CreateConsumerGroup (#9911)

Signed-off-by: fishpenguin <kun.yu@zilliz.com>
pull/9913/head
yukun 2021-10-14 20:00:35 +08:00 committed by GitHub
parent 971e0ea91f
commit a0d9991d6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -353,6 +353,7 @@ func (rmq *rocksmq) ExistConsumerGroup(topicName, groupName string) (bool, *Cons
return false, nil return false, nil
} }
// CreateConsumerGroup creates an nonexistent consumer group for topic
func (rmq *rocksmq) CreateConsumerGroup(topicName, groupName string) error { func (rmq *rocksmq) CreateConsumerGroup(topicName, groupName string) error {
start := time.Now() start := time.Now()
key := constructCurrentID(topicName, groupName) key := constructCurrentID(topicName, groupName)