Skip to content

Commit 84228bf

Browse files
committed
wip
Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
1 parent 84e9f59 commit 84228bf

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

operator-framework-core/src/main/java/io/javaoperatorsdk/operator/processing/event/source/informer/ManagedInformerEventSource.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,10 @@ public void changeNamespaces(Set<String> namespaces) {
9595
*/
9696
@SuppressWarnings("unchecked")
9797
public R eventFilteringUpdateAndCacheResource(
98-
R resourceToUpdate, UnaryOperator<R> updateOperation) {
98+
R resourceToUpdate, UnaryOperator<R> updateMethod) {
9999
if (resourceToUpdate.getMetadata().getResourceVersion() == null) {
100100
log.debug("No resourceVersion set. Skipping event filtering.");
101-
return updateAndCacheResource(resourceToUpdate, updateOperation);
101+
return updateAndCacheResource(resourceToUpdate, updateMethod);
102102
}
103103

104104
ResourceID id = ResourceID.fromResource(resourceToUpdate);
@@ -107,7 +107,7 @@ public R eventFilteringUpdateAndCacheResource(
107107
Set<ResourceID> relatedPrimaryIds = null;
108108
try {
109109
temporaryResourceCache.startEventFilteringModify(id);
110-
updatedResource = updateOperation.apply(resourceToUpdate);
110+
updatedResource = updateMethod.apply(resourceToUpdate);
111111
relatedPrimaryIds = cacheUpdateAndGetRelatedPrimaryIDs(updatedResource, resourceToUpdate);
112112
log.debug(
113113
"Caching resource update successful. id={}, rv={}",

0 commit comments

Comments
 (0)