[skip ci]Add comments for CreateProducer (#9517)

Signed-off-by: fishpenguin <kun.yu@zilliz.com>
pull/9509/head
yukun 2021-10-09 00:03:51 +08:00 committed by GitHub
parent cc07fc5f29
commit 1ec153ad9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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)