Skip to content

Conversation

@xwm1992
Copy link
Contributor

@xwm1992 xwm1992 commented Feb 7, 2021

fix:this problem because of heartBeat processor client info managing error

proxyHTTPServer.localClientInfoMapping.put(groupTopicClientMapping.getKey(), groupTopicClientMapping.getValue());
}else {
List<Client> tmpClientList = groupTopicClientMapping.getValue();
for (Client tmpClient : tmpClientList){
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
for (Client tmpClient : tmpClientList){
for (Client tmpClient : tmpClientList){
boolean isContains = false;
for (Client localClient : localClientList){
if (StringUtils.equals(localClient.url, tmpClient.url)){
isContains = true;
break;
}
}
if (!isContains){
localClientList.add(tmpClient);
}
}

These code can be simplified and extracted as a method will be better

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, I will fix that.

@xwm1992 xwm1992 merged commit c5ef5e7 into apache:1.2.0 Feb 7, 2021
xwm1992 added a commit that referenced this pull request Aug 4, 2022
[ISSUE #212]For multiple listening instances, only the last started instance can receive messages
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

For multiple listening instances, only the last started instance can receive messages

2 participants