Threadpool2 (#15151) (#15159)

* rework thread pool for hash calculation

* rename

(cherry picked from commit fbf9dc47e9)

Co-authored-by: Jeff Washington (jwash) <75863576+jeffwashington@users.noreply.github.com>
This commit is contained in:
mergify[bot]
2021-02-19 12:57:52 -06:00
committed by GitHub
parent 51e5189ffb
commit 804a284a52
4 changed files with 15 additions and 14 deletions

View File

@@ -1056,7 +1056,7 @@ fn new_banks_from_ledger(
None,
&snapshot_config.snapshot_package_output_path,
snapshot_config.archive_format,
&bank_forks.root_bank().get_thread_pool(),
Some(&bank_forks.root_bank().get_thread_pool()),
)
.unwrap_or_else(|err| {
error!("Unable to create snapshot: {}", err);