savearray2 commented on a change in pull request #130:
URL: https://github.com/apache/pulsar-client-node/pull/130#discussion_r506433956
##########
File path: src/Consumer.cc
##########
@@ -133,10 +135,19 @@ class ConsumerNewInstanceWorker : public
Napi::AsyncWorker {
}
this->done = false;
- if (topic.empty()) {
+ if (!topicsPattern.empty()) {
pulsar_client_subscribe_pattern_async(this->cClient,
topicsPattern.c_str(), subscription.c_str(),
this->consumerConfig->GetCConsumerConfig(),
&ConsumerNewInstanceWorker::subscribeCallback, (void *)this);
+ } else if (topics.size() > 0) {
+ const char **c_topics = new const char *[topics.size()];
Review comment:
@massakam
Thank you for your time.
I apologize for the snake_case. It was a force of habit.
I've updated the code from snake_case to camelCase (```c_topics``` →
```cTopics```).
Please let me know if you would like me to make any further changes.
----------------------------------------------------------------
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:
[email protected]