mirror of
https://github.com/status-im/ethereumj-personal.git
synced 2025-01-11 20:34:21 +00:00
Fix for peer discovery thread pool config
This commit is contained in:
parent
4c19299167
commit
60a385742b
@ -38,8 +38,8 @@ public class PeerDiscovery {
|
||||
threadFactory = Executors.defaultThreadFactory();
|
||||
|
||||
//creating the ThreadPoolExecutor
|
||||
executorPool = new ThreadPoolExecutor(1, config.peerDiscoveryWorkers(), 10, TimeUnit.SECONDS,
|
||||
new ArrayBlockingQueue<Runnable>(2), threadFactory, rejectionHandler);
|
||||
executorPool = new ThreadPoolExecutor(1, 1000, 10, TimeUnit.SECONDS,
|
||||
new ArrayBlockingQueue<Runnable>(config.peerDiscoveryWorkers()), threadFactory, rejectionHandler);
|
||||
|
||||
//start the monitoring thread
|
||||
monitor = new PeerDiscoveryMonitorThread(executorPool, 3);
|
||||
|
Loading…
x
Reference in New Issue
Block a user