Skip to content

Commit

Permalink
chore: remove redundant words in comment
Browse files Browse the repository at this point in the history
Signed-off-by: kindknow <[email protected]>
  • Loading branch information
kindknow committed Dec 29, 2024
1 parent 4e671d7 commit cf84987
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ant-networking/src/event/swarm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion ant-networking/src/metrics/bad_node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ struct ShunnedByCloseGroup {
old_new_group_shunned_list: HashSet<PeerId>,
}

/// 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<TimeFrame, Gauge>,
shunned_report_tracker: Vec<ShunnedReportTracker>,
Expand Down
2 changes: 1 addition & 1 deletion ant-node/tests/common/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion ant-protocol/src/messages/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit cf84987

Please sign in to comment.