Skip to content

Commit

Permalink
hotfix #354: fcm전송 비동기처리
Browse files Browse the repository at this point in the history
  • Loading branch information
Henry-Cha committed May 18, 2024
1 parent 5cc9a9d commit 193eaac
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ public void singleFcmSend(Member member, FcmDTO fcmDTO) {
}
}

@Async("taskExecutor")
public void multiFcmSend(List<Member> members, FcmDTO fcmDTO) {
members.forEach(member -> singleFcmSend(member, fcmDTO));
}
Expand All @@ -51,7 +52,7 @@ public Message makeMessage(String title, String body, String token) {
.build();
}

private void sendMessage(Message message) {
public void sendMessage(Message message) {
int attempt = 0;
long backoff = ConstantUtil.INITIAL_BACKOFF;

Expand Down

0 comments on commit 193eaac

Please sign in to comment.