mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
Changed "match" to "if let some" to fix build errors (#14637)
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
@ -54,7 +54,7 @@ pub struct TreeConfig {
|
||||
use_caching_and_prewarming: bool,
|
||||
/// Cross-block cache size in bytes.
|
||||
cross_block_cache_size: u64,
|
||||
/// Wether the host has enough parallelism to run state root task.
|
||||
/// Whether the host has enough parallelism to run state root task.
|
||||
has_enough_parallelism: bool,
|
||||
}
|
||||
|
||||
@ -224,7 +224,7 @@ impl TreeConfig {
|
||||
self
|
||||
}
|
||||
|
||||
/// Wether or not to use state root task
|
||||
/// Whether or not to use state root task
|
||||
pub(crate) fn use_state_root_task(&self) -> bool {
|
||||
self.has_enough_parallelism && !self.legacy_state_root
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user