Fixed code

This commit is contained in:
Luca Frosini 2022-05-24 11:02:42 +02:00
parent 19c674a350
commit 7ebebdda11
1 changed files with 0 additions and 3 deletions

View File

@ -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();