BewareMyPower commented on code in PR #16196:
URL: https://github.com/apache/pulsar/pull/16196#discussion_r906652829
##########
pulsar-client/src/main/java/org/apache/pulsar/client/impl/ProducerImpl.java:
##########
@@ -2214,8 +2233,8 @@ private void recoverProcessOpSendMsgFrom(ClientCnx cnx,
MessageImpl from, long e
/**
* Check if final message size for non-batch and non-chunked messages is
larger than max message size.
*/
- public boolean isMessageSizeExceeded(OpSendMsg op) {
- if (op.msg != null && op.totalChunks <= 1) {
+ private boolean isMessageSizeExceeded(OpSendMsg op) {
+ if (op.msg != null && op.totalChunks <= 1 &&
!conf.isEncryptionEnabled()) {
Review Comment:
Yes. And I will skip the check for `isEncryptionEnabled` here.
--
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]