diff --git a/implementations/rust/ockam/ockam_core/src/error/inner/formatting.rs b/implementations/rust/ockam/ockam_core/src/error/inner/formatting.rs index 49f76067602..2bcd9063f1b 100644 --- a/implementations/rust/ockam/ockam_core/src/error/inner/formatting.rs +++ b/implementations/rust/ockam/ockam_core/src/error/inner/formatting.rs @@ -25,7 +25,7 @@ impl core::fmt::Debug for ErrorData { writeln!(f, "Ockam Error [{}] at {}", self.code, self.source_loc)?; writeln!(f, "--- Details ---")?; if let Some(c) = &self.cause { - // TODO: iterate the cause chain, print the whole thing outp + // TODO: iterate the cause chain, print the whole thing out writeln!(f, "- Caused by: {}", c)?; } for e in self.payload.iter() { diff --git a/implementations/rust/ockam/ockam_macros/src/internals/ctx.rs b/implementations/rust/ockam/ockam_macros/src/internals/ctx.rs index c60e2f64057..c3902f7d1c6 100644 --- a/implementations/rust/ockam/ockam_macros/src/internals/ctx.rs +++ b/implementations/rust/ockam/ockam_macros/src/internals/ctx.rs @@ -26,7 +26,7 @@ impl Context { } } - /// Add an error to the context object with a tokenenizable object. + /// Add an error to the context object with a tokenizable object. /// /// The object is used for spanning in error messages. pub(crate) fn error_spanned_by(&self, obj: A, msg: T) { diff --git a/implementations/rust/ockam/ockam_node/src/messages.rs b/implementations/rust/ockam/ockam_node/src/messages.rs index 987764f64e5..3b5910e7db2 100644 --- a/implementations/rust/ockam/ockam_node/src/messages.rs +++ b/implementations/rust/ockam/ockam_node/src/messages.rs @@ -192,7 +192,7 @@ pub enum ShutdownType { /// * Signal worker clusters in reverse-creation order to stop /// * Wait for shutdown ACK hooks from each cluster before moving onto the /// next - /// * All shutdown-signalled workers may process their entire mailbox, + /// * All shutdown-signaled workers may process their entire mailbox, /// while not allowing new messages to be queued /// /// Graceful shutdown procedure will be pre-maturely terminated diff --git a/implementations/rust/ockam/ockam_node/src/relay/processor_relay.rs b/implementations/rust/ockam/ockam_node/src/relay/processor_relay.rs index 4ad5080ff96..f82e76f501c 100644 --- a/implementations/rust/ockam/ockam_node/src/relay/processor_relay.rs +++ b/implementations/rust/ockam/ockam_node/src/relay/processor_relay.rs @@ -88,7 +88,7 @@ where Err(err) => error!("processor run loop aborted with error: {:?}", err), }; - // If we reach this point the router has signalled us to shut down + // If we reach this point the router has signaled us to shut down match processor.shutdown(&mut ctx).await { Ok(()) => {} Err(e) => { diff --git a/implementations/rust/ockam/ockam_node/src/router/record.rs b/implementations/rust/ockam/ockam_node/src/router/record.rs index b40469c0242..0723af2a755 100644 --- a/implementations/rust/ockam/ockam_node/src/router/record.rs +++ b/implementations/rust/ockam/ockam_node/src/router/record.rs @@ -323,7 +323,7 @@ impl AddressRecord { pub enum AddressState { /// The runner is looping in its main body (either handling messages or a manual run-loop) Running, - /// The runner was signalled to shut-down (running `shutdown()`) + /// The runner was signaled to shut-down (running `shutdown()`) Stopping, /// The runner has experienced an error and is waiting for supervisor intervention #[allow(unused)] diff --git a/implementations/rust/ockam/ockam_node/src/router/shutdown.rs b/implementations/rust/ockam/ockam_node/src/router/shutdown.rs index 687aee0e46f..da0c191dce8 100644 --- a/implementations/rust/ockam/ockam_node/src/router/shutdown.rs +++ b/implementations/rust/ockam/ockam_node/src/router/shutdown.rs @@ -105,7 +105,7 @@ pub(super) async fn graceful( /// Implement the immediate shutdown strategy /// /// When triggering an `immediate` shutdown, all worker handles are -/// signalled to terminate, allowing workers to run their `async fn +/// signaled to terminate, allowing workers to run their `async fn /// shutdown(...)` hook. However: the router will not wait for them! /// Messages sent during the shutdown phase may not be delivered and /// shutdown hooks may be suddenly interrupted by thread-deallocation.