Skip to content

Commit

Permalink
undid special ThingDeleted handling again as not required for bugfix
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Jaeckle <thomas.jaeckle@bosch.io>
  • Loading branch information
thjaeckle committed Nov 3, 2021
1 parent d3108d7 commit cb4c0d7
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -358,13 +358,8 @@ private CompletionStage<JsonObject> handleNextExpectedThingEvents(
}
}
final var enhancedJsonObject = enhanceJsonObject(jsonObject, concernedSignals, enhancedFieldSelector);
final ThingEvent<?> last = getLast(concernedSignals);
if (last instanceof ThingDeleted) {
extraFieldsCache.invalidate(cacheKey);
} else {
// update local cache with enhanced object:
extraFieldsCache.put(cacheKey, enhancedJsonObject);
}
// update local cache with enhanced object:
extraFieldsCache.put(cacheKey, enhancedJsonObject);
return CompletableFuture.completedFuture(enhancedJsonObject);
}

Expand Down

0 comments on commit cb4c0d7

Please sign in to comment.