You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by yu...@apache.org on 2021/09/24 09:40:03 UTC

[rocketmq] branch develop updated: fix document mistake (#3304)

This is an automated email from the ASF dual-hosted git repository.

yuzhou pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/rocketmq.git


The following commit(s) were added to refs/heads/develop by this push:
     new fa935e8  fix document mistake (#3304)
fa935e8 is described below

commit fa935e832acecf258905d2dafb883c98f14d9580
Author: Silverados <29...@qq.com>
AuthorDate: Fri Sep 24 17:39:54 2021 +0800

    fix document mistake (#3304)
    
    message.getBody() return byte[], so change to length.
---
 docs/en/Example_Batch.md | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/docs/en/Example_Batch.md b/docs/en/Example_Batch.md
index 11bb42f..06461bb 100644
--- a/docs/en/Example_Batch.md
+++ b/docs/en/Example_Batch.md
@@ -57,7 +57,7 @@ public class ListSplitter implements Iterator<List<Message>> {
         return currIndex; 
     }
     private int calcMessageSize(Message message) {
-        int tmpSize = message.getTopic().length() + message.getBody().length(); 
+        int tmpSize = message.getTopic().length() + message.getBody().length; 
         Map<String, String> properties = message.getProperties();
         for (Map.Entry<String, String> entry : properties.entrySet()) {
             tmpSize += entry.getKey().length() + entry.getValue().length(); 
@@ -78,4 +78,4 @@ while (splitter.hasNext()) {
        // handle the error
    }
 }
-```
\ No newline at end of file
+```