hzh0425 commented on code in PR #4403:
URL: https://github.com/apache/rocketmq/pull/4403#discussion_r887724333
##########
docs/cn/RocketMQ_Example.md:
##########
@@ -440,6 +440,8 @@ public class ScheduledMessageConsumer {
public static void main(String[] args) throws Exception {
// 实例化消费者
DefaultMQPushConsumer consumer = new
DefaultMQPushConsumer("ExampleConsumer");
+ // 设置NameServer的地址
+ consumer.setNamesrvAddr("localhost:9876");
Review Comment:
It is better to annotate in English
##########
docs/cn/RocketMQ_Example.md:
##########
@@ -471,6 +473,8 @@ public class ScheduledMessageProducer {
public static void main(String[] args) throws Exception {
// 实例化一个生产者来产生延时消息
DefaultMQProducer producer = new
DefaultMQProducer("ExampleProducerGroup");
+ // 设置NameServer的地址
+ producer.setNamesrvAddr("localhost:9876");
Review Comment:
ditto
--
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]