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

Signed-off-by: fishpenguin <kun.yu@zilliz.com>
This commit is contained in:
yukun 2021-12-25 09:34:38 +08:00 committed by GitHub
parent 325639a2cb
commit 9be7192cf5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -74,6 +74,7 @@ func (pc *pulsarClient) CreateReader(options ReaderOptions) (Reader, error) {
return reader, nil
}
// Subscribe creates a pulsar consumer instance and subscribe a topic
func (pc *pulsarClient) Subscribe(options ConsumerOptions) (Consumer, error) {
receiveChannel := make(chan pulsar.ConsumerMessage, options.BufSize)
consumer, err := pc.client.Subscribe(pulsar.ConsumerOptions{