From 373efb4aa2835979ff875e99275564ce26ef6b40 Mon Sep 17 00:00:00 2001 From: luohewuyang Date: Sun, 5 Jul 2026 01:24:31 +0800 Subject: [PATCH] chore: fix a large number of spelling issues Signed-off-by: luohewuyang --- .../001-node-to-rust-foreign-function-interface.md | 4 ++-- crates/examples/examples/para_upgrade.rs | 2 +- crates/orchestrator/src/network.rs | 2 +- crates/orchestrator/src/network/node.rs | 2 +- crates/orchestrator/src/network_spec/parachain.rs | 2 +- crates/orchestrator/src/spawner.rs | 2 +- crates/provider/src/shared/scripts/zombie-wrapper.sh | 2 +- crates/support/src/fs/local.rs | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/adrs/001-node-rust-foreign-function-interface/001-node-to-rust-foreign-function-interface.md b/adrs/001-node-rust-foreign-function-interface/001-node-to-rust-foreign-function-interface.md index 1ce8035f7..688e1648a 100644 --- a/adrs/001-node-rust-foreign-function-interface/001-node-to-rust-foreign-function-interface.md +++ b/adrs/001-node-rust-foreign-function-interface/001-node-to-rust-foreign-function-interface.md @@ -43,7 +43,7 @@ Many mechanisms exists for this purpose like Wasm or N(ode)-API but some may or To demonstrate and learn which options fit the best for our use case, we will create a small test program which will have the following functionalities: -- Has a function taking an arbitratry object and a callback as parameters in the Typescript code, calling the callback with the function result on Rust side. +- Has a function taking an arbitrary object and a callback as parameters in the Typescript code, calling the callback with the function result on Rust side. - Has a function taking an arbitrary object as parameter and a returning a promise in Typescript, signaling an asynchronous operation on Rust side. - Make an HTTP request asynchronously in the Rust code, using a dependency using the standard library. @@ -107,6 +107,6 @@ The prototype assume versions of `rustc` and `cargo` to be `1.69.0`, use of `sta ## Decision outcome -- ### **Napi-rs** for crates dependant on async, filesystem or networking: *support*, *orchestrator*, *test-runner*, *providers* from [schema](https://github.com/paritytech/zombienet-sdk/issues/22) +- ### **Napi-rs** for crates dependent on async, filesystem or networking: *support*, *orchestrator*, *test-runner*, *providers* from [schema](https://github.com/paritytech/zombienet-sdk/issues/22) - ### **Wasm-pack** for the rest of the crates: *configuration* from [schema](https://github.com/paritytech/zombienet-sdk/issues/22) \ No newline at end of file diff --git a/crates/examples/examples/para_upgrade.rs b/crates/examples/examples/para_upgrade.rs index 778b1e371..e1171fda3 100644 --- a/crates/examples/examples/para_upgrade.rs +++ b/crates/examples/examples/para_upgrade.rs @@ -82,7 +82,7 @@ async fn main() -> Result<(), anyhow::Error> { .wait_metric(BEST_BLOCK_METRIC, |x| x > best_block + 50_f64) .await?; - println!("Perfoming upgrade from path {wasm}"); + println!("Performing upgrade from path {wasm}"); network .parachain(100) diff --git a/crates/orchestrator/src/network.rs b/crates/orchestrator/src/network.rs index cf53aaff1..4dad8aa43 100644 --- a/crates/orchestrator/src/network.rs +++ b/crates/orchestrator/src/network.rs @@ -879,7 +879,7 @@ impl Network { /// * `timeout_secs` - The number of seconds to wait. /// /// # Returns - /// * `Ok()` if the node is up before timeout occured. + /// * `Ok()` if the node is up before timeout occurred. /// * `Err(e)` if timeout or other error occurred while waiting. pub async fn wait_until_is_up(&self, timeout_secs: u64) -> Result<(), anyhow::Error> { let handles = self diff --git a/crates/orchestrator/src/network/node.rs b/crates/orchestrator/src/network/node.rs index 5858eca59..6ff0435f0 100644 --- a/crates/orchestrator/src/network/node.rs +++ b/crates/orchestrator/src/network/node.rs @@ -1133,7 +1133,7 @@ impl NetworkNode { /// * `timeout_secs` - The number of seconds to wait. /// /// # Returns - /// * `Ok()` if the node is up before timeout occured. + /// * `Ok()` if the node is up before timeout occurred. /// * `Err(e)` if timeout or other error occurred while waiting. pub async fn wait_until_is_up( &self, diff --git a/crates/orchestrator/src/network_spec/parachain.rs b/crates/orchestrator/src/network_spec/parachain.rs index 8a54193bd..7e5e134cc 100644 --- a/crates/orchestrator/src/network_spec/parachain.rs +++ b/crates/orchestrator/src/network_spec/parachain.rs @@ -31,7 +31,7 @@ pub struct ParachainSpec { /// Parachain id pub(crate) id: u32, - /// Unique id of the parachain, in the patter of - + /// Unique id of the parachain, in the pattern of - /// where the suffix is only present if more than one parachain is set with the same id pub(crate) unique_id: String, diff --git a/crates/orchestrator/src/spawner.rs b/crates/orchestrator/src/spawner.rs index cc4e60907..949cad11d 100644 --- a/crates/orchestrator/src/spawner.rs +++ b/crates/orchestrator/src/spawner.rs @@ -262,7 +262,7 @@ where let (rpc_port_external, prometheus_port_external, p2p_external); if running_in_ci() && ctx.ns.provider_name() == "k8s" { - // running kubernets in ci require to use ip and default port + // running kubernetes in ci require to use ip and default port (rpc_port_external, prometheus_port_external, p2p_external) = (RPC_PORT, PROMETHEUS_PORT, P2P_PORT); collator_full_node_prom_port_external = Some(FULL_NODE_PROMETHEUS_PORT); diff --git a/crates/provider/src/shared/scripts/zombie-wrapper.sh b/crates/provider/src/shared/scripts/zombie-wrapper.sh index 42b3432d8..df472419b 100755 --- a/crates/provider/src/shared/scripts/zombie-wrapper.sh +++ b/crates/provider/src/shared/scripts/zombie-wrapper.sh @@ -85,7 +85,7 @@ start() { # store pid $ECHO ${child_pid} > $ZOMBIE_CMD_PID - # sleep a few secs to detect errors bootstraping the node + # sleep a few secs to detect errors bootstrapping the node sleep 3 # check if the process is running diff --git a/crates/support/src/fs/local.rs b/crates/support/src/fs/local.rs index b9e737d19..84cc6855d 100644 --- a/crates/support/src/fs/local.rs +++ b/crates/support/src/fs/local.rs @@ -384,7 +384,7 @@ mod tests { let test_dir = setup(); let fs = LocalFileSystem; let path = format!("{test_dir}/somemissingfile"); - // intentionnally don't create file + // intentionally don't create file let err = fs.set_mode(&path, 0o400).await.unwrap_err();