Use serviceKey when to metadata ServiceSubscribeEvent (#12586)
This commit is contained in:
parent
27d9ce3836
commit
2c82cf7dfc
|
|
@ -97,4 +97,8 @@ public class MetadataIdentifier extends BaseServiceMetadataIdentifier implements
|
|||
this.application = application;
|
||||
}
|
||||
|
||||
public String getUniqueServiceName() {
|
||||
return serviceInterface != null ? URL.buildKey(serviceInterface, getGroup(), getVersion()) : null;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -279,7 +279,7 @@ public abstract class AbstractMetadataReport implements MetadataReport {
|
|||
|
||||
private void storeProviderMetadataTask(MetadataIdentifier providerMetadataIdentifier, ServiceDefinition serviceDefinition) {
|
||||
|
||||
MetadataEvent metadataEvent = MetadataEvent.toServiceSubscribeEvent(applicationModel, serviceDefinition.getCanonicalName());
|
||||
MetadataEvent metadataEvent = MetadataEvent.toServiceSubscribeEvent(applicationModel, providerMetadataIdentifier.getUniqueServiceName());
|
||||
MetricsEventBus.post(metadataEvent, () ->
|
||||
{
|
||||
boolean result = true;
|
||||
|
|
|
|||
Loading…
Reference in New Issue