[ISSUE 5265] Adjust nested logic to reduce nums of check in queryMsgByUniqKey (#5266)

This commit is contained in:
zhiliatom
2022-10-11 11:25:39 +08:00
committed by GitHub
parent 32c7d37f48
commit b944cd881b
@@ -454,8 +454,8 @@ public class MQAdminImpl {
}
//If namespace not null , reset Topic without namespace.
for (MessageExt messageExt : messageList) {
if (null != this.mQClientFactory.getClientConfig().getNamespace()) {
if (null != this.mQClientFactory.getClientConfig().getNamespace()) {
for (MessageExt messageExt : messageList) {
messageExt.setTopic(NamespaceUtil.withoutNamespace(messageExt.getTopic(), this.mQClientFactory.getClientConfig().getNamespace()));
}
}