提交 cc0a5e39 编写于 作者: Q qqeasonchen

code format

上级 7e221e51
...@@ -38,14 +38,14 @@ public class RequestProducer { ...@@ -38,14 +38,14 @@ public class RequestProducer {
producer.start(); producer.start();
try { try {
Message msg = new Message(topic, Message msg = new Message(topic,
"", "",
"Hello world".getBytes(RemotingHelper.DEFAULT_CHARSET)); "Hello world".getBytes(RemotingHelper.DEFAULT_CHARSET));
long begin = System.currentTimeMillis(); long begin = System.currentTimeMillis();
Message retMsg = producer.request(msg, ttl); Message retMsg = producer.request(msg, ttl);
long cost = System.currentTimeMillis() - begin; long cost = System.currentTimeMillis() - begin;
System.err.printf("request to <%s> cost: %d replyMessage: %s %n", topic, cost, retMsg); System.err.printf("request to <%s> cost: %d replyMessage: %s %n", topic, cost, retMsg);
} catch (Exception e) { } catch (Exception e) {
log.warn("", e); log.warn("", e);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册