[skip ci]Add comments for ExistConsumerGroup (#9832)

Signed-off-by: fishpenguin <kun.yu@zilliz.com>
This commit is contained in:
yukun 2021-10-13 20:44:33 +08:00 committed by GitHub
parent 67d38d6cf1
commit d2e2e0a63c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -338,6 +338,7 @@ func (rmq *rocksmq) DestroyTopic(topicName string) error {
return nil
}
// ExistConsumerGroup check if a consumer exists and return the existed consumer
func (rmq *rocksmq) ExistConsumerGroup(topicName, groupName string) (bool, *Consumer) {
key := constructCurrentID(topicName, groupName)
if rmq.checkKeyExist(key) {