Fixed code
This commit is contained in:
parent
19c674a350
commit
7ebebdda11
|
@ -139,8 +139,6 @@ public class ResourceRegistryPublisherImpl implements ResourceRegistryPublisher
|
|||
|
||||
protected Context getContextFromServer(String id) throws ContextNotFoundException, ResourceRegistryException {
|
||||
try {
|
||||
// TODO use cache
|
||||
|
||||
logger.info("Going to get current {} ", Context.NAME);
|
||||
GXHTTPStringRequest gxHTTPStringRequest = GXHTTPStringRequest.newRequest(address);
|
||||
gxHTTPStringRequest.from(ResourceRegistryPublisher.class.getSimpleName());
|
||||
|
@ -171,7 +169,6 @@ public class ResourceRegistryPublisherImpl implements ResourceRegistryPublisher
|
|||
public Context getContext(UUID uuid) throws ContextNotFoundException, ResourceRegistryException {
|
||||
ContextCache contextCache = ContextCache.getInstance();
|
||||
Context context = ContextCache.getInstance().getContextByUUID(uuid);
|
||||
;
|
||||
if (context == null) {
|
||||
context = getContextFromServer(uuid.toString());
|
||||
contextCache.cleanCache();
|
||||
|
|
Loading…
Reference in New Issue