- Collection<String> currentCandidates = addToCurrentCandidates(entityId, candidate);
- shard.tell(new CandidateAdded(entityId, candidate, new ArrayList<>(currentCandidates)), shard);
- } else if(changeRoot.getModificationType() == ModificationType.DELETE) {
- LOG.debug("Candidate {} was removed for entity {}", candidate, entityId);
+ Collection<String> newCandidates = addToCurrentCandidates(entityId, candidate);
+ shard.tell(new CandidateAdded(entityId, candidate, new ArrayList<>(newCandidates)), shard);
+ } else if (type == ModificationType.DELETE || type == ModificationType.DISAPPEARED) {
+ LOG.debug("{}: Candidate {} was removed for entity {}", logId, candidate, entityId);