mirror of https://github.com/milvus-io/milvus.git
[skip ci]Add comments for CreateProducer (#9517)
Signed-off-by: fishpenguin <kun.yu@zilliz.com>pull/9509/head
parent
cc07fc5f29
commit
1ec153ad9b
|
@ -34,6 +34,7 @@ func NewRmqClient(opts rocksmq.ClientOptions) (*rmqClient, error) {
|
|||
return &rmqClient{client: c}, nil
|
||||
}
|
||||
|
||||
// CreateProducer creates a producer for rocksmq client
|
||||
func (rc *rmqClient) CreateProducer(options ProducerOptions) (Producer, error) {
|
||||
rmqOpts := rocksmq.ProducerOptions{Topic: options.Topic}
|
||||
pp, err := rc.client.CreateProducer(rmqOpts)
|
||||
|
|
Loading…
Reference in New Issue