提交 8f81193f 编写于 作者: L liangfei0201

DUBBO-456 去掉不必要的参数

上级 e71a36a6
......@@ -80,7 +80,9 @@ public abstract class AbstractRegistryFactory implements RegistryFactory {
}
public Registry getRegistry(URL url) {
url = url.setPath(RegistryService.class.getName()).addParameter(Constants.INTERFACE_KEY, RegistryService.class.getName());
url = url.setPath(RegistryService.class.getName())
.addParameter(Constants.INTERFACE_KEY, RegistryService.class.getName())
.removeParameters(Constants.EXPORT_KEY, Constants.REFER_KEY);
String key = url.toServiceString();
// 锁定注册中心获取过程,保证注册中心单一实例
LOCK.lock();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册