From 6fb6d5b262939918d9959e6b4c5dd284aa849638 Mon Sep 17 00:00:00 2001 From: pinglanlu Date: Tue, 12 Nov 2024 11:49:44 +0800 Subject: [PATCH] chore: remove redundant words in comment Signed-off-by: pinglanlu --- book/src/user/shielded-scan-grpc-server.md | 2 +- zebra-network/src/meta_addr/tests/check.rs | 2 +- zebrad/src/components/mempool/tests/vector.rs | 2 +- zebrad/tests/acceptance.rs | 4 ++-- zebrad/tests/end_of_support.rs | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/book/src/user/shielded-scan-grpc-server.md b/book/src/user/shielded-scan-grpc-server.md index d08bc0df49e..327ec14f861 100644 --- a/book/src/user/shielded-scan-grpc-server.md +++ b/book/src/user/shielded-scan-grpc-server.md @@ -65,7 +65,7 @@ scanner.Scanner.GetResults scanner.Scanner.RegisterKeys ``` -To see the the request and response types for a method, for example the `GetResults` method, try: +To see the request and response types for a method, for example the `GetResults` method, try: ```bash diff --git a/zebra-network/src/meta_addr/tests/check.rs b/zebra-network/src/meta_addr/tests/check.rs index 234a2352567..f24c4a71fc5 100644 --- a/zebra-network/src/meta_addr/tests/check.rs +++ b/zebra-network/src/meta_addr/tests/check.rs @@ -67,7 +67,7 @@ pub(crate) fn sanitize_avoids_leaks(original: &MetaAddr, sanitized: &MetaAddr) { // check the other fields - // Sanitize to the the default state, even though it's not serialized + // Sanitize to the default state, even though it's not serialized assert_eq!(sanitized.last_connection_state, Default::default()); // Sanitize to known flags let sanitized_peer_services = diff --git a/zebrad/src/components/mempool/tests/vector.rs b/zebrad/src/components/mempool/tests/vector.rs index c285923fa7d..86848c8bae7 100644 --- a/zebrad/src/components/mempool/tests/vector.rs +++ b/zebrad/src/components/mempool/tests/vector.rs @@ -888,7 +888,7 @@ async fn mempool_reverifies_after_tip_change() -> Result<(), Report> { .await; // Push block 2 to the state. This will increase the tip height past the expected - // tip height that the the tx was verified at. + // tip height that the tx was verified at. state_service .ready() .await diff --git a/zebrad/tests/acceptance.rs b/zebrad/tests/acceptance.rs index cd3572ce3f2..b0949cd336d 100644 --- a/zebrad/tests/acceptance.rs +++ b/zebrad/tests/acceptance.rs @@ -2555,7 +2555,7 @@ async fn submit_block() -> Result<()> { common::get_block_template_rpcs::submit_block::run().await } -/// Check that the the end of support code is called at least once. +/// Check that the end of support code is called at least once. #[test] fn end_of_support_is_checked_at_start() -> Result<()> { let _init_guard = zebra_test::init(); @@ -3474,7 +3474,7 @@ async fn nu6_funding_streams_and_coinbase_balance() -> Result<()> { "invalid block with excessive coinbase output value should be rejected" ); - // Use an invalid coinbase transaction (with an output value less than than the `block_subsidy + miner_fees - expected_lockbox_funding_stream`) + // Use an invalid coinbase transaction (with an output value less than the `block_subsidy + miner_fees - expected_lockbox_funding_stream`) let network = base_network_params .clone() .with_post_nu6_funding_streams(ConfiguredFundingStreams { diff --git a/zebrad/tests/end_of_support.rs b/zebrad/tests/end_of_support.rs index 94c4d3cc967..9b28d63ee91 100644 --- a/zebrad/tests/end_of_support.rs +++ b/zebrad/tests/end_of_support.rs @@ -68,7 +68,7 @@ fn end_of_support_date() { )); } -/// Check that the the end of support task is working. +/// Check that the end of support task is working. #[tokio::test] #[tracing_test::traced_test] async fn end_of_support_task() -> Result<()> {