Solve the bug: the persistent instance becomes a temporary instance after the console operation goes offline (#8517)
This commit is contained in:
parent
b8b34b81cc
commit
bf1c06f82b
@ -81,8 +81,9 @@ public class ServiceStorage {
|
||||
if (!ServiceManager.getInstance().containSingleton(service)) {
|
||||
return result;
|
||||
}
|
||||
result.setHosts(getAllInstancesFromIndex(service));
|
||||
serviceDataIndexes.put(service, result);
|
||||
Service singleton = ServiceManager.getInstance().getSingleton(service);
|
||||
result.setHosts(getAllInstancesFromIndex(singleton));
|
||||
serviceDataIndexes.put(singleton, result);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user