diff --git a/ant-networking/src/event/swarm.rs b/ant-networking/src/event/swarm.rs index d4385d0500..e83c18364f 100644 --- a/ant-networking/src/event/swarm.rs +++ b/ant-networking/src/event/swarm.rs @@ -550,7 +550,7 @@ impl SwarmDriver { error, } => { event_string = "Incoming ConnErr"; - // Only log as ERROR if the the connection is not adjacent to an already established connection id from + // Only log as ERROR if the connection is not adjacent to an already established connection id from // the same IP address. // // If a peer contains multiple transports/listen addrs, we might try to open multiple connections, diff --git a/ant-networking/src/metrics/bad_node.rs b/ant-networking/src/metrics/bad_node.rs index 311c0ca8aa..23d8a8afa1 100644 --- a/ant-networking/src/metrics/bad_node.rs +++ b/ant-networking/src/metrics/bad_node.rs @@ -46,7 +46,7 @@ struct ShunnedByCloseGroup { old_new_group_shunned_list: HashSet, } -/// A struct to record the the number of reports against our node across different time frames. +/// A struct to record the number of reports against our node across different time frames. struct ShunnedCountAcrossTimeFrames { metric: Family, shunned_report_tracker: Vec, diff --git a/ant-node/tests/common/client.rs b/ant-node/tests/common/client.rs index faf8c1ae05..851edb53de 100644 --- a/ant-node/tests/common/client.rs +++ b/ant-node/tests/common/client.rs @@ -52,7 +52,7 @@ pub async fn get_client_and_funded_wallet() -> (Client, Wallet) { } /// Get the node count -/// If SN_INVENTORY flag is passed, the node count is obtained from the the droplet +/// If SN_INVENTORY flag is passed, the node count is obtained from the droplet /// else return the local node count pub fn get_node_count() -> usize { match DeploymentInventory::load() { diff --git a/ant-protocol/src/messages/query.rs b/ant-protocol/src/messages/query.rs index f38500bd41..d395274037 100644 --- a/ant-protocol/src/messages/query.rs +++ b/ant-protocol/src/messages/query.rs @@ -66,7 +66,7 @@ pub enum Query { }, /// Queries close_group peers whether the target peer is a bad_node CheckNodeInProblem(NetworkAddress), - /// Query the the peers in range to the target address, from the receiver's perspective. + /// Query the peers in range to the target address, from the receiver's perspective. /// In case none of the parameters provided, returns nothing. /// In case both of the parameters provided, `range` is preferred to be replied. GetClosestPeers {