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 2019/12/08 02:00:06 UTC

[GitHub] [pulsar-client-go] Jim-Lambert-Bose opened a new issue #111: consumer.Subscription() returns "" since options are never set in internalTopicSubscribe()

Jim-Lambert-Bose opened a new issue #111: consumer.Subscription() returns "" since options are never set in internalTopicSubscribe()
URL: https://github.com/apache/pulsar-client-go/issues/111
 
 
   #### Expected behavior
   Subscriber.Subscription() should return the subscription name
   
   #### Actual behavior
   returns ""
   
   #### Steps to reproduce
   
   create subscriber with pulsar.ConsumerOptions{
   SubscriptionName: "anything-at-all"
   }
   
   Then try to call sub.Subscription()
   
   It appears you pass the options correctly when creating the newPartitionConsumer, but you forgot to set them in the consumer you return at: https://github.com/apache/pulsar-client-go/blob/862285fee18a213289062d855156f44823e5a724/pulsar/consumer_impl.go#L198

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


With regards,
Apache Git Services