mirror of https://github.com/milvus-io/milvus.git
[skip e2e]Add comment for pulsar client (#14197)
Signed-off-by: fishpenguin <kun.yu@zilliz.com>pull/14226/head
parent
9be7192cf5
commit
65c19cb869
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue