mirror of https://github.com/milvus-io/milvus.git
[skip e2e]Add comment for pulsar reader (#14118)
Signed-off-by: fishpenguin <kun.yu@zilliz.com>pull/14148/head
parent
92c8d1ab1e
commit
5d3eb75762
|
@ -16,6 +16,7 @@ func (pr *pulsarReader) Topic() string {
|
||||||
return pr.r.Topic()
|
return pr.r.Topic()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Next read the next message in the topic, blocking until a message is available
|
||||||
func (pr *pulsarReader) Next(ctx context.Context) (Message, error) {
|
func (pr *pulsarReader) Next(ctx context.Context) (Message, error) {
|
||||||
pm, err := pr.r.Next(ctx)
|
pm, err := pr.r.Next(ctx)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue