Replace channel with Mutex<Option> for AccountsPackage (#24013)
This commit is contained in:
@ -5,7 +5,6 @@ use {
|
||||
crate_description, crate_name, value_t, value_t_or_exit, values_t_or_exit, App,
|
||||
AppSettings, Arg, ArgMatches, SubCommand,
|
||||
},
|
||||
crossbeam_channel::unbounded,
|
||||
dashmap::DashMap,
|
||||
itertools::Itertools,
|
||||
log::*,
|
||||
@ -43,6 +42,7 @@ use {
|
||||
snapshot_archive_info::SnapshotArchiveInfoGetter,
|
||||
snapshot_config::SnapshotConfig,
|
||||
snapshot_hash::StartingSnapshotHashes,
|
||||
snapshot_package::PendingAccountsPackage,
|
||||
snapshot_utils::{
|
||||
self, ArchiveFormat, SnapshotVersion, DEFAULT_MAX_FULL_SNAPSHOT_ARCHIVES_TO_RETAIN,
|
||||
DEFAULT_MAX_INCREMENTAL_SNAPSHOT_ARCHIVES_TO_RETAIN,
|
||||
@ -768,7 +768,6 @@ fn load_bank_forks(
|
||||
vec![non_primary_accounts_path]
|
||||
};
|
||||
|
||||
let (accounts_package_sender, _) = unbounded();
|
||||
bank_forks_utils::load(
|
||||
genesis_config,
|
||||
blockstore,
|
||||
@ -778,7 +777,7 @@ fn load_bank_forks(
|
||||
process_options,
|
||||
None,
|
||||
None,
|
||||
accounts_package_sender,
|
||||
PendingAccountsPackage::default(),
|
||||
None,
|
||||
)
|
||||
.map(|(bank_forks, .., starting_snapshot_hashes)| (bank_forks, starting_snapshot_hashes))
|
||||
|
Reference in New Issue
Block a user