You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2020/05/18 06:36:03 UTC

[GitHub] [pulsar-client-go] wolfstudy commented on issue #241: HasNext returns false when message is available

wolfstudy commented on issue #241:
URL: https://github.com/apache/pulsar-client-go/issues/241#issuecomment-629976251


   You can try to use the following code example:
   
   ```
   	consumer, err := client.CreateReader(pulsar.ReaderOptions{
   		Topic: "persistent://public/default/test",
   		StartMessageID: pulsar.EarliestMessageID(),
   		StartMessageIDInclusive: true,
   	})
   ```
   
   More use reference to [here](https://github.com/apache/pulsar-client-go/blob/master/pulsar/reader_test.go#L315-L364)


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org