cckellogg commented on a change in pull request #616:
URL: https://github.com/apache/pulsar-client-go/pull/616#discussion_r708541871
##########
File path: pulsar/consumer_multitopic.go
##########
@@ -149,8 +149,10 @@ func (c *multiTopicConsumer) ReconsumeLater(msg Message,
delay time.Duration) {
fqdnTopic := internal.TopicNameWithoutPartitionPart(names[0])
consumer, ok := c.consumers[fqdnTopic]
if !ok {
- c.log.Warnf("consumer of topic %s not exist unexpectedly",
msg.Topic())
- return
+ if consumer, ok = c.consumers[names[0].Name]; !ok {
Review comment:
Let's make a variable for names[0]
```
tn := names[0]
```
Also, let's add a comment.
```
// check to see if the topic with the partition part is in the consumers
// this can happen when the consumer is configured to consume from a
specific partition
```
--
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]