Skip to content

Commit

Permalink
Merge pull request #1969 from finnishtransportagency/DROTH-3198_Updat…
Browse files Browse the repository at this point in the history
…eIncomplete_refactor_new_branch

DROTH-3198 Out of memory fix
  • Loading branch information
anttiahopeltositowise authored May 18, 2022
2 parents d83abae + 6056628 commit 3c87c2d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ object RefreshRoadLinkCache {
}

if (flushSuccess) {
val roadLinks = municipalities.flatMap(municipality => {
municipalities.foreach(municipality => {
roadLinkService.getRoadLinksAndComplementaryLinksFromVVHByMunicipality(municipality)
})
logger.info("Cached " + roadLinks.size + " roadlinks with overrided properties from database")
logger.info("Cached roadlinks with overrided properties from database")
}
else logger.error("Flushing cache failed")
}
Expand Down

0 comments on commit 3c87c2d

Please sign in to comment.