odbozhou commented on a change in pull request #3336:
URL: https://github.com/apache/rocketmq/pull/3336#discussion_r705924685



##########
File path: docs/cn/RocketMQ_Example.md
##########
@@ -438,6 +438,7 @@ public class ScheduledMessageConsumer {
    public static void main(String[] args) throws Exception {
       // 实例化消费者
       DefaultMQPushConsumer consumer = new 
DefaultMQPushConsumer("ExampleConsumer");
+      consumer.setNamesrvAddr("127.0.0.1:9876");

Review comment:
       NamesrvAddr is not necessary for the sample code, you can look at the 
official website sample ( https://rocketmq.apache.org/docs/quick-start/ ), 
export NAMESRV_ADDR=localhost:9876




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