Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove redundant words in comment #2576

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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