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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

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