From 29c8130bab0ed8216f48e47a78c602e7f0c5c1f2 Mon Sep 17 00:00:00 2001 From: jimdssd Date: Tue, 7 May 2024 18:23:27 +0800 Subject: [PATCH] chore: fix typos (#4395) --- polkadot/node/service/src/lib.rs | 2 +- .../node/subsystem-bench/src/lib/approval/message_generator.rs | 2 +- polkadot/node/subsystem-bench/src/lib/approval/mod.rs | 2 +- polkadot/runtime/parachains/src/assigner_on_demand/mod.rs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/polkadot/node/service/src/lib.rs b/polkadot/node/service/src/lib.rs index e5c29172099b..665533e9bc70 100644 --- a/polkadot/node/service/src/lib.rs +++ b/polkadot/node/service/src/lib.rs @@ -956,7 +956,7 @@ pub fn new_full< pvf_execute_workers_max_num: execute_workers_max_num.unwrap_or_else( || match config.chain_spec.identify_chain() { // The intention is to use this logic for gradual increasing from 2 to 4 - // of this configuration chain by chain untill it reaches production chain. + // of this configuration chain by chain until it reaches production chain. Chain::Polkadot | Chain::Kusama => 2, Chain::Rococo | Chain::Westend | Chain::Unknown => 4, }, diff --git a/polkadot/node/subsystem-bench/src/lib/approval/message_generator.rs b/polkadot/node/subsystem-bench/src/lib/approval/message_generator.rs index 219b2cb515d7..e4a6c207970f 100644 --- a/polkadot/node/subsystem-bench/src/lib/approval/message_generator.rs +++ b/polkadot/node/subsystem-bench/src/lib/approval/message_generator.rs @@ -91,7 +91,7 @@ pub struct PeerMessagesGenerator { impl PeerMessagesGenerator { /// Generates messages by spawning a blocking task in the background which begins creating - /// the assignments/approvals and peer view changes at the begining of each block. + /// the assignments/approvals and peer view changes at the beginning of each block. pub fn generate_messages(mut self, spawn_task_handle: &SpawnTaskHandle) { spawn_task_handle.spawn("generate-messages", "generate-messages", async move { for block_info in &self.blocks { diff --git a/polkadot/node/subsystem-bench/src/lib/approval/mod.rs b/polkadot/node/subsystem-bench/src/lib/approval/mod.rs index 6ab5b86baede..6ac0776d2d35 100644 --- a/polkadot/node/subsystem-bench/src/lib/approval/mod.rs +++ b/polkadot/node/subsystem-bench/src/lib/approval/mod.rs @@ -98,7 +98,7 @@ pub(crate) const TEST_CONFIG: ApprovalVotingConfig = ApprovalVotingConfig { const DATA_COL: u32 = 0; /// Start generating messages for a slot into the future, so that the -/// generation nevers falls behind the current slot. +/// generation never falls behind the current slot. const BUFFER_FOR_GENERATION_MILLIS: u64 = 30_000; /// Parameters specific to the approvals benchmark diff --git a/polkadot/runtime/parachains/src/assigner_on_demand/mod.rs b/polkadot/runtime/parachains/src/assigner_on_demand/mod.rs index 598a0f109700..37788a67ea0c 100644 --- a/polkadot/runtime/parachains/src/assigner_on_demand/mod.rs +++ b/polkadot/runtime/parachains/src/assigner_on_demand/mod.rs @@ -740,7 +740,7 @@ where /// /// Subtracts from the count of the `CoreAffinityCount` if an entry is found and the core_index /// matches. When the count reaches 0, the entry is removed. - /// A non-existant entry is a no-op. + /// A non-existent entry is a no-op. /// /// Returns: The new affinity of the para on that core. `None` if there is no affinity on this /// core.