[skip ci]Add comments for rocksmq producer_impl (#10695)

Signed-off-by: fishpenguin <kun.yu@zilliz.com>
This commit is contained in:
yukun 2021-10-26 21:38:29 +08:00 committed by GitHub
parent 648608d84c
commit e8651a1cd9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -57,6 +57,7 @@ func (p *producer) Send(message *ProducerMessage) (UniqueID, error) {
return ids[0], nil
}
// Close destroy the topic of this producer in rocksmq
func (p *producer) Close() {
err := p.c.server.DestroyTopic(p.topic)
if err != nil {