Skip to content

Commit

Permalink
gg
Browse files Browse the repository at this point in the history
  • Loading branch information
HyungJu committed Sep 25, 2024
1 parent 7b0ca1f commit 0b8fe7d
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class PhotoBookService(
input: CreatePhotobookRequest,
): PhotoBook {
val photos: MutableList<Photo> = mutableListOf()
val chunkSize = 30
val chunkSize = 10
val photoChunks = input.photos.chunked(chunkSize)

photoChunks.forEach { chunk ->
Expand All @@ -58,6 +58,10 @@ class PhotoBookService(
dateTime = photo.toGetLocationInputDto().date,
),
)
}.exceptionally {
println(it)

null
}.join()
}
}
Expand Down

0 comments on commit 0b8fe7d

Please sign in to comment.