Update SseEmitterController.java (#4864)

This commit is contained in:
Grzegorz Piwowarek
2018-08-01 22:10:58 +02:00
committed by GitHub
parent 0b642f91e0
commit f69c265185

View File

@@ -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;
}
}
}