Skip to content

[#2381]fix initLatestVersion method#2384

Merged
liubao68 merged 2 commits intoapache:masterfrom
kaister3:2381
May 27, 2021
Merged

[#2381]fix initLatestVersion method#2384
liubao68 merged 2 commits intoapache:masterfrom
kaister3:2381

Conversation

@kaister3
Copy link
Contributor

No description provided.

Comment on lines 148 to 158
TagItem latestVersionTag = RouterRuleCache.getServiceInfoCacheMap().get(serviceName).getLatestVersionTag();

if (latestVersionTag != null) {
for (T server : list) {
E ms = getIns.apply(server);
if (getVersion.apply(ms).equals(latestVersionTag.getVersion())) {
return;
}
}
}

Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe it's better to using API's in foundation-registry to find latest version.
While now, line 148~158 can be deleted, since if you check version match, will call getIns always, it it some as delete all these lines.

@liubao68 liubao68 merged commit 3138a19 into apache:master May 27, 2021
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.

2 participants