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
|
@Controller
|
||||||
public class SseEmitterController {
|
public class SseEmitterController {
|
||||||
private ExecutorService nonBlockingService = Executors.newSingleThreadExecutor();
|
private ExecutorService nonBlockingService = Executors.newCachedThreadPool();
|
||||||
|
|
||||||
@GetMapping(Constants.API_SSE)
|
@GetMapping(Constants.API_SSE)
|
||||||
public SseEmitter handleSse() {
|
public SseEmitter handleSse() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user