From aa5a3911ef0bf4468c118128fc9cb478b70c0700 Mon Sep 17 00:00:00 2001 From: hongkuang Date: Tue, 3 Dec 2024 16:08:44 +0800 Subject: [PATCH] chore: remove redundant words in comment Signed-off-by: hongkuang --- massa-bootstrap/src/tests/binders.rs | 4 ++-- .../src/speculative_executed_denunciations.rs | 2 +- massa-execution-worker/src/speculative_executed_ops.rs | 2 +- massa-execution-worker/src/tests/scenarios_mandatories.rs | 2 +- massa-models/src/secure_share.rs | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/massa-bootstrap/src/tests/binders.rs b/massa-bootstrap/src/tests/binders.rs index 46ef5b1c699..4d8310f76b9 100644 --- a/massa-bootstrap/src/tests/binders.rs +++ b/massa-bootstrap/src/tests/binders.rs @@ -396,7 +396,7 @@ fn test_partial_msg() { client.handshake(version()).unwrap(); // write the signature. - // This test assumes that the the signature is not checked until the message is read in + // This test assumes that the signature is not checked until the message is read in // its entirety. The signature here would cause the message exchange to fail on that basis // if this assumption is broken. client_clone @@ -766,7 +766,7 @@ fn test_client_drip_feed() { client.handshake(version()).unwrap(); // write the signature. - // This test assumes that the the signature is not checked until the message is read in + // This test assumes that the signature is not checked until the message is read in // its entirety. The signature here would cause the message exchange to fail on that basis // if this assumption is broken. client_clone diff --git a/massa-execution-worker/src/speculative_executed_denunciations.rs b/massa-execution-worker/src/speculative_executed_denunciations.rs index 1c8f9bb2c13..1376121f377 100644 --- a/massa-execution-worker/src/speculative_executed_denunciations.rs +++ b/massa-execution-worker/src/speculative_executed_denunciations.rs @@ -28,7 +28,7 @@ impl SpeculativeExecutedDenunciations { /// Creates a new `SpeculativeExecutedDenunciations` /// /// # Arguments - /// * `final_state`: thread-safe shared access the the final state + /// * `final_state`: thread-safe shared access the final state /// * `active_history`: thread-safe shared access the speculative execution history pub fn new( final_state: Arc>, diff --git a/massa-execution-worker/src/speculative_executed_ops.rs b/massa-execution-worker/src/speculative_executed_ops.rs index f3a44386e69..fe3bab9095c 100644 --- a/massa-execution-worker/src/speculative_executed_ops.rs +++ b/massa-execution-worker/src/speculative_executed_ops.rs @@ -26,7 +26,7 @@ impl SpeculativeExecutedOps { /// Creates a new `SpeculativeExecutedOps` /// /// # Arguments - /// * `final_state`: thread-safe shared access the the final state + /// * `final_state`: thread-safe shared access the final state /// * `active_history`: thread-safe shared access the speculative execution history pub fn new( final_state: Arc>, diff --git a/massa-execution-worker/src/tests/scenarios_mandatories.rs b/massa-execution-worker/src/tests/scenarios_mandatories.rs index a04a9d305ae..3e3ba87fdeb 100644 --- a/massa-execution-worker/src/tests/scenarios_mandatories.rs +++ b/massa-execution-worker/src/tests/scenarios_mandatories.rs @@ -2954,7 +2954,7 @@ fn test_dump_block() { std::thread::sleep(Duration::from_secs(1)); - // if the the storage backend for the dump-block feature is a rocksdb, this + // if the storage backend for the dump-block feature is a rocksdb, this // is mandatory (the db must be closed before we can reopen it to ckeck the // data) drop(universe); diff --git a/massa-models/src/secure_share.rs b/massa-models/src/secure_share.rs index 2cf591102ba..44da8aaf011 100644 --- a/massa-models/src/secure_share.rs +++ b/massa-models/src/secure_share.rs @@ -23,7 +23,7 @@ where T: Display + SecureShareContent, ID: Id, { - /// Reference contents. Not required for the the security protocols. + /// Reference contents. Not required for the security protocols. /// /// Use the Lightweight equivilant structures when you need verifiable /// serialized data, but do not need to read the values directly (such as when sending)