mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
[skip ci]Add comments for CreateProducer (#9517)
Signed-off-by: fishpenguin <kun.yu@zilliz.com>
This commit is contained in:
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…
x
Reference in New Issue
Block a user