elvizlai opened a new issue #664:
URL: https://github.com/apache/pulsar-client-go/issues/664


   #### Expected behavior
   
   should be `ReconsumeLater`
   
   #### Actual behavior
   
   Panic when call ReconsumeLater
   
   With version 0.6.0
   
https://github.com/apache/pulsar-client-go/blob/fe3b7c4e445b3de42974ca692574229ad9099a45/pulsar/consumer_impl.go?_pjax=%23js-repo-pjax-container%2C%20div%5Bitemtype%3D%22http%3A%2F%2Fschema.org%2FSoftwareSourceCode%22%5D%20main%2C%20%5Bdata-pjax-container%5D#L481
   
   #### Steps to reproduce
   
   ```
        client, err := pulsar.NewClient(pulsar.ClientOptions{
                URL: addr,
        })
        if err != nil {
                panic(err)
        }
   
        consumer, err := client.Subscribe(pulsar.ConsumerOptions{
                Topic:            "test",
                SubscriptionName: "xyz",
        })
        if err != nil {
                panic(err)
        }
   
           for {
                select {
                case cm := <-consumer.Chan():
                        fmt.Println(string(cm.Payload()))
                        cm.ReconsumeLater(cm.Message,time.Second)
                }
           }
   ```
   
   #### System configuration
   **Pulsar version**: 0.6.0
   


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to