mirror of
https://github.com/apache/rocketmq.git
synced 2026-09-19 10:54:54 +08:00
[ISSUE 5265] Adjust nested logic to reduce nums of check in queryMsgByUniqKey (#5266)
This commit is contained in:
@@ -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()));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user