Update SseEmitterController.java (#4864)
This commit is contained in:
parent
0b642f91e0
commit
f69c265185
|
@ -10,7 +10,7 @@ import org.springframework.web.servlet.mvc.method.annotation.SseEmitter;
|
|||
|
||||
@Controller
|
||||
public class SseEmitterController {
|
||||
private ExecutorService nonBlockingService = Executors.newSingleThreadExecutor();
|
||||
private ExecutorService nonBlockingService = Executors.newCachedThreadPool();
|
||||
|
||||
@GetMapping(Constants.API_SSE)
|
||||
public SseEmitter handleSse() {
|
||||
|
@ -29,4 +29,4 @@ public class SseEmitterController {
|
|||
return emitter;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue