BewareMyPower commented on a change in pull request #12403:
URL: https://github.com/apache/pulsar/pull/12403#discussion_r775127599



##########
File path: 
pulsar-client/src/main/java/org/apache/pulsar/client/impl/ProducerImpl.java
##########
@@ -1178,12 +1190,46 @@ protected boolean 
verifyLocalBufferIsNotCorrupted(OpSendMsg op) {
         }
     }
 
+    static class ChunkedMessageCtx {

Review comment:
       In addition, the `op.chunkedMessageCtx != null` check is redundant 
because `chunkedMessageCtx` is assigned when `totalChunks > 1`.
   
   ```java
                   ChunkedMessageCtx chunkedMessageCtx = totalChunks > 1 ? 
ChunkedMessageCtx.get() : null;
   ```




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