mirror of
https://github.com/bitcoin-s/bitcoin-s.git
synced 2025-03-03 10:46:42 +01:00
Reduce rescan threadpool size to just be number of available processors (#4306)
This commit is contained in:
parent
d46b4a6c91
commit
fac0713405
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ case class WalletAppConfig(baseDatadir: Path, configOverrides: Vector[Config])(
|
|||
|
||||
/** Threads for rescanning the wallet */
|
||||
private[wallet] lazy val rescanThreadPool: ExecutorService =
|
||||
Executors.newFixedThreadPool(Runtime.getRuntime.availableProcessors() * 2,
|
||||
Executors.newFixedThreadPool(Runtime.getRuntime.availableProcessors(),
|
||||
rescanThreadFactory)
|
||||
|
||||
private val callbacks = new Mutable(WalletCallbacks.empty)
|
||||
|
|
Loading…
Add table
Reference in a new issue