Skip to content

Commit ae669ea

Browse files
beiwei30chickenlj
authored andcommitted
Dubbo 2.7.0的provider无法指定客户端默认async (#4058)
Fixes #3650
1 parent 789775b commit ae669ea

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

dubbo-cluster/src/main/java/org/apache/dubbo/rpc/cluster/support/ClusterUtils.java

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@
2121
import org.apache.dubbo.common.utils.StringUtils;
2222

2323
import java.util.HashMap;
24-
import java.util.HashSet;
2524
import java.util.Map;
26-
import java.util.Set;
2725

2826
import static org.apache.dubbo.common.constants.ClusterConstants.TAG_KEY;
2927
import static org.apache.dubbo.common.constants.CommonConstants.ALIVE_KEY;
@@ -40,7 +38,6 @@
4038
import static org.apache.dubbo.common.constants.CommonConstants.THREAD_NAME_KEY;
4139
import static org.apache.dubbo.common.constants.CommonConstants.TIMESTAMP_KEY;
4240
import static org.apache.dubbo.common.constants.CommonConstants.VERSION_KEY;
43-
import static org.apache.dubbo.common.constants.RpcConstants.ASYNC_KEY;
4441
import static org.apache.dubbo.common.constants.RpcConstants.DUBBO_VERSION_KEY;
4542
import static org.apache.dubbo.common.constants.RpcConstants.INVOKER_LISTENER_KEY;
4643
import static org.apache.dubbo.common.constants.RpcConstants.REFERENCE_FILTER_KEY;
@@ -81,20 +78,6 @@ public static URL mergeUrl(URL remoteUrl, Map<String, String> localMap) {
8178

8279
map.remove(RemotingConstants.TRANSPORTER_KEY);
8380
map.remove(DEFAULT_KEY_PREFIX + RemotingConstants.TRANSPORTER_KEY);
84-
85-
map.remove(ASYNC_KEY);
86-
map.remove(DEFAULT_KEY_PREFIX + ASYNC_KEY);
87-
88-
// remove method async entry.
89-
Set<String> methodAsyncKey = new HashSet<>();
90-
for (String key : map.keySet()) {
91-
if (key != null && key.endsWith("." + ASYNC_KEY)) {
92-
methodAsyncKey.add(key);
93-
}
94-
}
95-
for (String needRemove : methodAsyncKey) {
96-
map.remove(needRemove);
97-
}
9881
}
9982

10083
if (localMap != null && localMap.size() > 0) {

0 commit comments

Comments
 (0)