From 9013cc5f646c079cd63df325054e85b89ed7616a Mon Sep 17 00:00:00 2001 From: Silverados <295843706@qq.com> Date: Fri, 24 Sep 2021 17:39:17 +0800 Subject: [PATCH] fix document mistake (#3303) fix message.getBody().length() --> message.getBody().length --- docs/cn/RocketMQ_Example.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/cn/RocketMQ_Example.md b/docs/cn/RocketMQ_Example.md index bd0fc80a..e26bcdf0 100644 --- a/docs/cn/RocketMQ_Example.md +++ b/docs/cn/RocketMQ_Example.md @@ -572,7 +572,7 @@ public class ListSplitter implements Iterator> { return currIndex; } private int calcMessageSize(Message message) { - int tmpSize = message.getTopic().length() + message.getBody().length(); + int tmpSize = message.getTopic().length() + message.getBody().length; Map properties = message.getProperties(); for (Map.Entry entry : properties.entrySet()) { tmpSize += entry.getKey().length() + entry.getValue().length(); -- GitLab