Skip to content

Commit

Permalink
Merge pull request #122 from H-Hive/revert-121-feature/notification
Browse files Browse the repository at this point in the history
Revert "fix: 알림 변경"
  • Loading branch information
mixedtape authored Feb 1, 2024
2 parents 3639988 + dcf591e commit 6ca3320
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public class NotificationService {


public SseEmitter addSseEmitter(Long userId) {
SseEmitter emitter = new SseEmitter();
SseEmitter emitter = new SseEmitter(600000L);
emitterRepository.add(userId, emitter);
emitter.onCompletion(() -> {
emitterRepository.remove(userId);
Expand Down Expand Up @@ -159,4 +159,4 @@ private void sendNotificationToClients(Long userId, Notification notification) {
System.err.println("전송 실패");
}
}
}
}

0 comments on commit 6ca3320

Please sign in to comment.