BewareMyPower commented on pull request #9822:
URL: https://github.com/apache/pulsar/pull/9822#issuecomment-792634107
You need to format your code using `clang-format`.
Here's the diff you can `git apply`:
```diff
diff --git a/pulsar-client-cpp/include/pulsar/ProducerConfiguration.h
b/pulsar-client-cpp/include/pulsar/ProducerConfiguration.h
index c681461ab6a..085d342d763 100644
--- a/pulsar-client-cpp/include/pulsar/ProducerConfiguration.h
+++ b/pulsar-client-cpp/include/pulsar/ProducerConfiguration.h
@@ -229,8 +229,8 @@ class PULSAR_PUBLIC ProducerConfiguration {
*/
const MessageRoutingPolicyPtr& getMessageRouterPtr() const;
- /**
- * Set the hashing scheme, which is a standard hashing function
available when choosing the partition
+ /**
+ * Set the hashing scheme, which is a standard hashing function
available when choosing the partition
* used for a particular message.
*
* <p>Standard hashing functions available are:
@@ -269,10 +269,10 @@ class PULSAR_PUBLIC ProducerConfiguration {
* Control whether automatic batching of messages is enabled or not for
the producer. <i>Default value:
* false (no automatic batching).</i>
*
- * When automatic batching is enabled, multiple calls to
Producer::sendAsync can result in a single batch to be sent
- * to the broker, leading to better throughput, especially when
publishing small messages. If compression
- * is enabled, messages are compressed at the batch level, leading to a
much better compression ratio for
- * similar headers or contents.
+ * When automatic batching is enabled, multiple calls to
Producer::sendAsync can result in a single batch
+ * to be sent to the broker, leading to better throughput, especially
when publishing small messages. If
+ * compression is enabled, messages are compressed at the batch level,
leading to a much better
+ * compression ratio for similar headers or contents.
*
* When the default batch delay is set to 10 ms and the default batch
size is 1000 messages.
*
```
----------------------------------------------------------------
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]