merlimat commented on a change in pull request #61: [issue:60] Fix partition 
topic message router logic
URL: https://github.com/apache/pulsar-client-go/pull/61#discussion_r342731449
 
 

 ##########
 File path: pulsar/impl_producer.go
 ##########
 @@ -45,14 +48,18 @@ func newProducer(client *client, options *ProducerOptions) 
(*producer, error) {
                return nil, newError(ResultInvalidTopicName, "Topic name is 
required for producer")
        }
 
+       if options.BatchingMaxPublishDelay == 0 {
+               options.BatchingMaxPublishDelay = defaultBatchingMaxPublishDelay
 
 Review comment:
   Received options structs should be treated as immutable.

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


With regards,
Apache Git Services

Reply via email to