Skip to content

Commit

Permalink
[Feat]: 불필요 async 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
bayy1216 committed Sep 27, 2024
1 parent 9fce915 commit bf738fd
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,8 @@ class NovelViewWriteBackManager(
* 1. `entity`를 `writeBackNovelIdCountMap`에 추가한다.
* 2. 해당 `novelId`의 count가 `flushSize`를 넘으면 `flush`를 호출한다.
*
* `synchronized block`이 있으므로 `Async`로 처리한다.
*/
override fun save(entity: EpisodeView) = executeAsync {
override fun save(entity: EpisodeView) {
val shouldFlush: Boolean
synchronized(writeBackNovelIdCountMap) {
val count = writeBackNovelIdCountMap.getOrDefault(entity.novelId, 0) + 1
Expand Down

0 comments on commit bf738fd

Please sign in to comment.