Skip to content

Commit

Permalink
check invoker available status after proxy created. (apache#6435)
Browse files Browse the repository at this point in the history
  • Loading branch information
chickenlj committed Nov 25, 2020
1 parent 20a6b5e commit 527b017
Showing 1 changed file with 0 additions and 10 deletions.
Expand Up @@ -391,16 +391,6 @@ private T createProxy(Map<String, String> map) {
if (logger.isInfoEnabled()) {
logger.info("Refer dubbo service " + interfaceClass.getName() + " from url " + invoker.getUrl());
}
/**
* @since 2.7.0
* ServiceData Store
*/
String metadata = map.get(METADATA_KEY);
WritableMetadataService metadataService = WritableMetadataService.getExtension(metadata == null ? DEFAULT_METADATA_STORAGE_TYPE : metadata);
if (metadataService != null) {
URL consumerURL = new URL(CONSUMER_PROTOCOL, map.remove(REGISTER_IP_KEY), 0, map.get(INTERFACE_KEY), map);
metadataService.publishServiceDefinition(consumerURL);
}
// create service proxy
return (T) PROXY_FACTORY.getProxy(invoker, ProtocolUtils.isGeneric(generic));
}
Expand Down

0 comments on commit 527b017

Please sign in to comment.