Reduce rescan threadpool size to just be number of available processors (#4306)

This commit is contained in:
Chris Stewart 2022-05-01 07:05:43 -05:00 committed by GitHub
parent d46b4a6c91
commit fac0713405
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)