private static Source<Object, NotUsed> toPolicyReferenceTags(final PolicyTag policyTag, final ThingsSearchUpdaterPersistence searchUpdaterPersistence) { return searchUpdaterPersistence.getOutdatedThingIds(policyTag) .map(thingId -> PolicyReferenceTag.of(thingId, policyTag)); } }
private static Source<Object, NotUsed> toPolicyReferenceTags(final PolicyTag policyTag, final ThingsSearchUpdaterPersistence searchUpdaterPersistence) { return searchUpdaterPersistence.getOutdatedThingIds(policyTag) .map(thingId -> PolicyReferenceTag.of(thingId, policyTag)); } }