Skip to content

Commit

Permalink
Dubbo 2.6.x may not support multi group consumer (#7997)
Browse files Browse the repository at this point in the history
fixes #7985
  • Loading branch information
qixiaobo committed Jun 8, 2021
1 parent 115cc7f commit c5ed7de
Showing 1 changed file with 8 additions and 0 deletions.
Expand Up @@ -71,6 +71,14 @@ public static URL mergeUrl(URL remoteUrl, Map<String, String> localMap) {
if (dubbo != null && dubbo.length() > 0) {
map.put(Constants.DUBBO_VERSION_KEY, dubbo);
}
String defaultVersion = remoteMap.get(Constants.DEFAULT_KEY_PREFIX + Constants.VERSION_KEY);
if (defaultVersion != null && defaultVersion.length() > 0) {
map.put(Constants.DEFAULT_KEY_PREFIX + Constants.VERSION_KEY, defaultVersion);
}
String defaultGroup = remoteMap.get(Constants.DEFAULT_KEY_PREFIX + Constants.GROUP_KEY);
if (defaultGroup != null && defaultGroup.length() > 0) {
map.put(Constants.DEFAULT_KEY_PREFIX + Constants.GROUP_KEY, defaultGroup);
}
String version = remoteMap.get(Constants.VERSION_KEY);
if (version != null && version.length() > 0) {
map.put(Constants.VERSION_KEY, version);
Expand Down

0 comments on commit c5ed7de

Please sign in to comment.