[skip ci]Add rmq producer comments (#11272)

Signed-off-by: fishpenguin <kun.yu@zilliz.com>
This commit is contained in:
yukun 2021-11-04 20:45:17 +08:00 committed by GitHub
parent e21068ffbc
commit eda65381c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,6 +27,7 @@ func (rp *rmqProducer) Topic() string {
return rp.p.Topic()
}
// Send send the producer messages to rocksmq
func (rp *rmqProducer) Send(ctx context.Context, message *ProducerMessage) (MessageID, error) {
pm := &rocksmq.ProducerMessage{Payload: message.Payload}
id, err := rp.p.Send(pm)