[skip e2e]Add comment for pulsar client (#14197)

Signed-off-by: fishpenguin <kun.yu@zilliz.com>
pull/14226/head
yukun 2021-12-25 09:36:30 +08:00 committed by GitHub
parent 9be7192cf5
commit 65c19cb869
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -42,6 +42,7 @@ func GetPulsarClientInstance(opts pulsar.ClientOptions) (*pulsarClient, error) {
return sc, nil
}
// CreateProducer create a pulsar producer from options
func (pc *pulsarClient) CreateProducer(options ProducerOptions) (Producer, error) {
opts := pulsar.ProducerOptions{Topic: options.Topic}
pp, err := pc.client.CreateProducer(opts)