Skip to content

Commit f4bc9e7

Browse files
author
github-actions
committed
chore: Java 스타일 수정
1 parent de112ba commit f4bc9e7

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

backend/src/main/java/io/f1/backend/domain/game/sse/app/SseService.java

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,16 @@ public <T> void notifyLobbyUpdate(LobbySseEvent<T> event) {
4444
}
4545

4646
private void startHeartBeat(SseEmitter emitter) {
47-
scheduler.scheduleAtFixedRate(() -> {
48-
try {
49-
emitter.send(SseEmitter.event().name("heartbeat").data("sse-alive"));
50-
} catch (IOException e) {
51-
emitterRepository.remove(emitter);
52-
}
53-
}, 5, 30, TimeUnit.SECONDS);
47+
scheduler.scheduleAtFixedRate(
48+
() -> {
49+
try {
50+
emitter.send(SseEmitter.event().name("heartbeat").data("sse-alive"));
51+
} catch (IOException e) {
52+
emitterRepository.remove(emitter);
53+
}
54+
},
55+
5,
56+
30,
57+
TimeUnit.SECONDS);
5458
}
5559
}

0 commit comments

Comments
 (0)