Skip to content

Commit

Permalink
fix: sse 설정 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
parkdaye committed Aug 18, 2023
1 parent a20e045 commit 3fd556a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package com.nexters.moyeomoyeo.notification.handler;

import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.CopyOnWriteArrayList;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
Expand All @@ -15,7 +15,7 @@
public class SseEmitterHandler {

// key : teamBuildingUuid
private final Map<String, List<SseEmitter>> emitterMap = new HashMap<>();
private final Map<String, List<SseEmitter>> emitterMap = new ConcurrentHashMap<>();

public List<SseEmitter> getEmitters(String teamBuildingUuid) {
final List<SseEmitter> emitterList = emitterMap.get(teamBuildingUuid);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
@RequiredArgsConstructor
public class NotificationService {

//TODO 시간 원복
private static final Long DEFAULT_TIMEOUT = 60L * 1000 * 1;
private static final Long DEFAULT_TIMEOUT = 60L * 1000 * 30;

private final SseEmitterHandler handler;

Expand Down

0 comments on commit 3fd556a

Please sign in to comment.