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:
Poulav Bhowmick
2025-02-21 20:50:15 +05:30
committed by GitHub
parent 74a1151c07
commit d77c6061da
2 changed files with 6 additions and 14 deletions

View File

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