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

   Fixes #807 
   
   ### Motivation
   
   To customize producer options for DLQ topics.
   
   ### Modifications
   
   Add DLQProducerOptions to consumer's DLQ policy.
   
   ### Verifying this change
   
   - [ ] Make sure that the change passes the CI checks.
   
   *(Please pick either of the following options)*
   
   The existing DLQ test is enhanced to cover customized producer options.
   
   ### Does this pull request potentially affect one of the following parts:
   A new producer options field, `DLQProuducerOptions`, is introduced for DLQ 
policy to govern the producer options.
   ```
   ConsumerOptions{
                Topics:              topics,
                DLQ: &DLQPolicy{
                        MaxDeliveries:   3,
                        DeadLetterTopic: dlqTopic,
                        DLQProducerOptions: ProducerOptions{
                                BatchingMaxPublishDelay: 100 * time.Millisecond,
                        },
                },
   ```
     - Dependencies (does it add or upgrade a dependency): no
     - The public API: yes
     - The schema: no
     - The default values of configurations: yes (the existing lz4 compression 
type is the default.)
     - The wire protocol: no
    
   ### Documentation
   
     - Does this pull request introduce a new feature? (yes)
     - If yes, how is the feature documented? (GoDocs)
     - If a feature is not applicable for documentation, explain why?
     - If a feature is not documented yet in this PR, please create a followup 
issue for adding the documentation
   


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