Skip to content

Commit

Permalink
알림 반환문제 테스트
Browse files Browse the repository at this point in the history
  • Loading branch information
jsangmin99 committed Sep 5, 2024
1 parent ccc1ae0 commit 2fc86e7
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,10 @@ private void setupInviteEmitterCallbacks(String email, SseEmitter emitter) {
}

void removeInviteEmitter(String email, String reason) {
inviteEmitters.computeIfPresent(email, (k, emitter) -> {
SseEmitter emitter = inviteEmitters.remove(email); // 명시적으로 삭제
if (emitter != null) {
log.info("SseEmitter for email {} {}.", email, reason);
return null; // This removes the entry
});
}
}

public void sendInvitation(String email, String message) {
Expand Down

0 comments on commit 2fc86e7

Please sign in to comment.