AuroraTwinkle commented on code in PR #24102:
URL: https://github.com/apache/pulsar/pull/24102#discussion_r2009535513
##########
pulsar-client/src/main/java/org/apache/pulsar/client/impl/ProducerImpl.java:
##########
@@ -542,10 +542,8 @@ public void sendAsync(Message<?> message, SendCallback
callback) {
boolean compressed = false;
// Batch will be compressed when closed
// If a message has a delayed delivery time, we'll always send it
individually
- if (((!isBatchMessagingEnabled() || msgMetadata.hasDeliverAtTime()))) {
- if (payload.readableBytes() < conf.getCompressMinMsgBodySize()) {
-
- } else {
+ if ((!isBatchMessagingEnabled() || msgMetadata.hasDeliverAtTime())) {
Review Comment:
There is still one more layer of brackets?
--
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]