提交 61338871 编写于 作者: D dongeforever

Fix

上级 08618d51
...@@ -721,11 +721,11 @@ public class DefaultMQProducerImpl implements MQProducerInner { ...@@ -721,11 +721,11 @@ public class DefaultMQProducerImpl implements MQProducerInner {
final TopicPublishInfo topicPublishInfo, final TopicPublishInfo topicPublishInfo,
final long timeout) throws MQClientException, RemotingException, MQBrokerException, InterruptedException { final long timeout) throws MQClientException, RemotingException, MQBrokerException, InterruptedException {
long beginStartTime = System.currentTimeMillis(); long beginStartTime = System.currentTimeMillis();
String destBrokerName = this.mQClientFactory.getBrokerNameFromMessageQueue(mq); String brokerName = this.mQClientFactory.getBrokerNameFromMessageQueue(mq);
String brokerAddr = this.mQClientFactory.findBrokerAddressInPublish(destBrokerName); String brokerAddr = this.mQClientFactory.findBrokerAddressInPublish(brokerName);
if (null == brokerAddr) { if (null == brokerAddr) {
tryToFindTopicPublishInfo(mq.getTopic()); tryToFindTopicPublishInfo(mq.getTopic());
brokerAddr = this.mQClientFactory.findBrokerAddressInPublish(destBrokerName); brokerAddr = this.mQClientFactory.findBrokerAddressInPublish(brokerName);
} }
SendMessageContext context = null; SendMessageContext context = null;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册