Skip to content

Commit

Permalink
Fix spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
slowli committed May 21, 2024
1 parent e4468b1 commit e198001
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/node/commitment_generator/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ impl CommitmentGenerator {
}
}

/// Returns default parallelism for commitment generation based on the number of CPUs available.
/// Returns default parallelism for commitment generation based on the number of CPU cores available.
pub fn default_parallelism() -> NonZeroU32 {
// Leave at least one core free to handle other blocking tasks. `unwrap()`s are safe by design.
let cpus = u32::try_from(num_cpus::get().saturating_sub(1).clamp(1, 16)).unwrap();
Expand Down

0 comments on commit e198001

Please sign in to comment.