This commit is contained in:
JianweiWang 2024-03-18 09:36:31 +08:00 committed by GitHub
parent 038420c69f
commit b79d585f97
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -189,7 +189,8 @@ public class NamingMetadataManager extends SmartSubscriber {
*/
public void loadServiceMetadataSnapshot(ConcurrentMap<Service, ServiceMetadata> snapshot) {
for (Service each : snapshot.keySet()) {
ServiceManager.getInstance().getSingleton(each);
Service service = Service.newService(each.getNamespace(), each.getGroup(), each.getName(), each.isEphemeral());
ServiceManager.getInstance().getSingleton(service);
}
ConcurrentMap<Service, ServiceMetadata> oldSnapshot = serviceMetadataMap;
serviceMetadataMap = snapshot;