Skip to content

Commit

Permalink
#236 12번째 시도
Browse files Browse the repository at this point in the history
12번째 시도
  • Loading branch information
geonoo committed Aug 4, 2022
1 parent 09bb452 commit e4c0cc1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,6 @@ public ResponseEntity<String> deleteNotification() {
.body(notificationService.deleteNotification(LoadUser.getEmail()));
}

@CrossOrigin(value = { "*" },
allowedHeaders = { "*" },
maxAge = 900
)
@GetMapping("/subscribe/{id}")
public SseEmitter subscribe(@RequestHeader(value = "Last-Event-ID", required = false, defaultValue = "") String lastEventId,
@PathVariable Long id ) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
public class EmitterService {

private final EmitterRepository emitterRepository;
private static final Long DEFAULT_TIMEOUT = 60L * 1000 * 60;
private static final Long DEFAULT_TIMEOUT = 60L * 1000 * 60 * 24;

public SseEmitter createEmitter(Long id) {
SseEmitter emitter = new SseEmitter(DEFAULT_TIMEOUT);
Expand Down

0 comments on commit e4c0cc1

Please sign in to comment.