From 26cc19b92d45722d1d0ee7ea921cabc0510ea919 Mon Sep 17 00:00:00 2001 From: Helen Grachtz Date: Tue, 11 Feb 2025 11:56:40 +0300 Subject: [PATCH] Fix code comments and bug report errors (#319) fix typos --- node/network/src/behaviour/mod.rs | 2 +- node/network/tests/pm_tests.rs | 2 +- run/config-testnet-standard.toml | 2 +- run/config-testnet-turbo.toml | 2 +- run/config.toml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/node/network/src/behaviour/mod.rs b/node/network/src/behaviour/mod.rs index f0e9da7..2bda07f 100644 --- a/node/network/src/behaviour/mod.rs +++ b/node/network/src/behaviour/mod.rs @@ -740,7 +740,7 @@ where &error, ConnectionDirection::Outgoing, ); - // inform failures of requests comming outside the behaviour + // inform failures of requests coming outside the behaviour if let RequestId::Application(id) = id { self.add_event(BehaviourEvent::RPCFailed { peer_id, id }); } diff --git a/node/network/tests/pm_tests.rs b/node/network/tests/pm_tests.rs index 99f0c7b..448fee1 100644 --- a/node/network/tests/pm_tests.rs +++ b/node/network/tests/pm_tests.rs @@ -54,7 +54,7 @@ impl Service { struct Ev(PeerManagerEvent); impl From for Ev { fn from(_: void::Void) -> Self { - unreachable!("No events are emmited") + unreachable!("No events are emitted") } } impl From for Ev { diff --git a/run/config-testnet-standard.toml b/run/config-testnet-standard.toml index 7ceea5e..f171989 100644 --- a/run/config-testnet-standard.toml +++ b/run/config-testnet-standard.toml @@ -238,7 +238,7 @@ auto_sync_enabled = true # Enable to start a file sync via RPC (e.g. `admin_startSyncFile`). # sync_file_by_rpc_enabled = true -# Maximum number of continous failures to terminate a file sync. +# Maximum number of continuous failures to terminate a file sync. # max_request_failures = 3 # Timeout to dial peers. diff --git a/run/config-testnet-turbo.toml b/run/config-testnet-turbo.toml index 147ea11..0b4e1d0 100644 --- a/run/config-testnet-turbo.toml +++ b/run/config-testnet-turbo.toml @@ -250,7 +250,7 @@ auto_sync_enabled = true # Enable to start a file sync via RPC (e.g. `admin_startSyncFile`). # sync_file_by_rpc_enabled = true -# Maximum number of continous failures to terminate a file sync. +# Maximum number of continuous failures to terminate a file sync. # max_request_failures = 3 # Timeout to dial peers. diff --git a/run/config.toml b/run/config.toml index fa8e49f..24f773c 100644 --- a/run/config.toml +++ b/run/config.toml @@ -252,7 +252,7 @@ # Enable to start a file sync via RPC (e.g. `admin_startSyncFile`). # sync_file_by_rpc_enabled = true -# Maximum number of continous failures to terminate a file sync. +# Maximum number of continuous failures to terminate a file sync. # max_request_failures = 3 # Timeout to dial peers.