[skip ci]Add comments for rocksmq produce (#10030)

Signed-off-by: fishpenguin <kun.yu@zilliz.com>
pull/10040/head
yukun 2021-10-16 22:05:04 +08:00 committed by GitHub
parent e8d5a1ee5f
commit 65a1ae0210
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -427,6 +427,7 @@ func (rmq *rocksmq) DestroyConsumerGroup(topicName, groupName string) error {
return nil
}
// Produce produces messages for topic and updates page infos for retention
func (rmq *rocksmq) Produce(topicName string, messages []ProducerMessage) ([]UniqueID, error) {
ll, ok := topicMu.Load(topicName)
if !ok {