Skip to content

Commit

Permalink
Use the put method
Browse files Browse the repository at this point in the history
  • Loading branch information
bchapuis committed Nov 14, 2023
1 parent 0156f34 commit 9fca581
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,17 +76,17 @@ public void accept(Change change) {
if (!nodes.isEmpty()) {
logger.trace("Creating {} nodes", nodes.size());
nodeRepository.delete(nodeIds);
nodeRepository.copy(nodes);
nodeRepository.put(nodes);
}
if (!ways.isEmpty()) {
logger.trace("Creating {} ways", ways.size());
wayRepository.delete(wayIds);
wayRepository.copy(ways);
wayRepository.put(ways);
}
if (!relations.isEmpty()) {
logger.trace("Creating {} relations", relations.size());
relationRepository.delete(relationIds);
relationRepository.copy(relations);
relationRepository.put(relations);
}
}
case DELETE -> {
Expand Down

0 comments on commit 9fca581

Please sign in to comment.