jordanfitz opened a new pull request, #1456:
URL: https://github.com/apache/pulsar-client-go/pull/1456

   ### Motivation
   
   Currently, `ReconsumeLater` and `ReconsumeLaterWithCustomProperties` are 
unimplemented on `regexConsumer`. From what I can tell, these appear to just be 
missing methods rather than some fundamental limitation of the consumer 
implementation. Hopefully I'm correct there. 
   
   ### Modifications
   
   I've essentially copied over the `ReconsumeLaterWithCustomProperties` 
implementation from `multiTopicConsumer`. I ran into the problem that the 
current code to add the RLQ topic to the consumer's `Topics` slice doesn't take 
into account subscriptions defined by `TopicsPattern`. To address this, I 
(perhaps naively) append the RLQ topic to the slice returned by 
`regexConsumer.topics()`. 
   
   ### Verifying this change
   
   - [ ] Make sure that the change passes the CI checks.
   
   This change added tests and can be verified as follows:
   
     - Added a test to ensure that a call to `ReconsumeLater` on a regex-based 
consumer causes the message to be published to the RLQ.
   
   ### Does this pull request potentially affect one of the following parts:
   
     - Dependencies (does it add or upgrade a dependency): No
     - The public API: No
     - The schema: No
     - The default values of configurations: No
     - The wire protocol: No
   
   ### Documentation
   
     - Does this pull request introduce a new feature? No
     - If yes, how is the feature documented? N/A
     - If a feature is not applicable for documentation, explain why? The 
behavior of the newly-implemented method should be the same as the existing 
consumer implementations.
   


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