You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2019/06/04 10:28:29 UTC

[GitHub] [pulsar] wolfstudy opened a new issue #4464: [Go Client] The default value of batch is false

wolfstudy opened a new issue #4464: [Go Client] The default value of batch is false
URL: https://github.com/apache/pulsar/issues/4464
 
 
   **Describe the bug**
   
   In java and cpp client, the default value of `batch` is `true`, but in go client the value is `false`.
   
   In `c_producer.go` file:
   
   ```
   if options.Batching {
   	C.pulsar_producer_configuration_set_batching_enabled(conf, cBool(options.Batching))
   }
   ```
   
   Because the implementation of the go client depends on the cpp client, in the above code, when the user sets the value of batch to `false`, the batch of the go client is still true. So, no matter how the user sets it, the batch is always true in the go client.

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services