mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-23 23:06:39 +01:00
Increase capacity for thread pool queue at ExportJsonFilesService
One seed node using the ExportJsonFilesService had RejectedExecutionExceptions as before we had only permitted a thread pool queue capacity of 1. Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
This commit is contained in:
parent
4c237dcf0d
commit
5ff7be9208
1 changed files with 5 additions and 2 deletions
|
@ -53,6 +53,7 @@ import java.util.ArrayList;
|
|||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
import java.util.concurrent.ThreadPoolExecutor;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
@ -63,8 +64,7 @@ public class ExportJsonFilesService implements DaoSetupService {
|
|||
private final File storageDir;
|
||||
private final boolean dumpBlockchainData;
|
||||
|
||||
private final ListeningExecutorService executor = Utilities.getListeningExecutorService("JsonExporter",
|
||||
1, 1, 1200);
|
||||
private final ListeningExecutorService executor;
|
||||
private JsonFileManager txFileManager, txOutputFileManager, bsqStateFileManager;
|
||||
|
||||
@Inject
|
||||
|
@ -74,6 +74,9 @@ public class ExportJsonFilesService implements DaoSetupService {
|
|||
this.daoStateService = daoStateService;
|
||||
this.storageDir = storageDir;
|
||||
this.dumpBlockchainData = dumpBlockchainData;
|
||||
|
||||
ThreadPoolExecutor threadPoolExecutor = Utilities.getThreadPoolExecutor("JsonExporter", 1, 1, 20, 60);
|
||||
executor = MoreExecutors.listeningDecorator(threadPoolExecutor);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue