mirror of
https://github.com/AsamK/signal-cli
synced 2025-09-03 04:50:37 +00:00
Use new threads API
This commit is contained in:
parent
8d55dfb66b
commit
ed8ac5b84c
7 changed files with 40 additions and 75 deletions
|
@ -54,7 +54,7 @@ public class HttpServerHandler {
|
|||
logger.info("Starting server on " + address.toString());
|
||||
|
||||
final var server = HttpServer.create(address, 0);
|
||||
server.setExecutor(Executors.newFixedThreadPool(10));
|
||||
server.setExecutor(Executors.newCachedThreadPool());
|
||||
|
||||
server.createContext("/api/v1/rpc", this::handleRpcEndpoint);
|
||||
server.createContext("/api/v1/events", this::handleEventsEndpoint);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue