mirror of
https://github.com/proxiodev/RedisBungee.git
synced 2024-12-23 02:28:01 +00:00
Change thread pool from fixed size of 16 threads to a cached one.
RedisBungee's operations aren't particularly long-lived so this makes more sense. Eventually, this will simply wrap around the BungeeCord scheduler, since most of its pressing issues are resolved.
This commit is contained in:
parent
4834b7826f
commit
2cbe1997a0
@ -463,7 +463,7 @@ public final class RedisBungee extends Plugin {
|
||||
FutureTask<Void> task2 = new FutureTask<>(new Callable<Void>() {
|
||||
@Override
|
||||
public Void call() throws Exception {
|
||||
service = Executors.newFixedThreadPool(16);
|
||||
service = Executors.newCachedThreadPool();
|
||||
httpClient = new OkHttpClient();
|
||||
Dispatcher dispatcher = new Dispatcher(service);
|
||||
httpClient.setDispatcher(dispatcher);
|
||||
|
Loading…
Reference in New Issue
Block a user