Skip to content

Commit

Permalink
fix: duplicate word typos (#3854)
Browse files Browse the repository at this point in the history
  • Loading branch information
omahs authored May 28, 2024
1 parent b440d98 commit 806f984
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions rust/agents/relayer/src/settings/matching_list.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! The correct settings shape is defined in the TypeScript SDK metadata. While the the exact shape
//! The correct settings shape is defined in the TypeScript SDK metadata. While the exact shape
//! and validations it defines are not applied here, we should mirror them.
//! ANY CHANGES HERE NEED TO BE REFLECTED IN THE TYPESCRIPT SDK.
Expand Down Expand Up @@ -267,13 +267,13 @@ impl<'a> From<&'a HyperlaneMessage> for MatchInfo<'a> {

impl MatchingList {
/// Check if a message matches any of the rules.
/// - `default`: What to return if the the matching list is empty.
/// - `default`: What to return if the matching list is empty.
pub fn msg_matches(&self, msg: &HyperlaneMessage, default: bool) -> bool {
self.matches(msg.into(), default)
}

/// Check if a message matches any of the rules.
/// - `default`: What to return if the the matching list is empty.
/// - `default`: What to return if the matching list is empty.
fn matches(&self, info: MatchInfo, default: bool) -> bool {
if let Some(rules) = &self.0 {
matches_any_rule(rules.iter(), info)
Expand Down
2 changes: 1 addition & 1 deletion rust/agents/relayer/src/settings/mod.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//! Relayer configuration
//!
//! The correct settings shape is defined in the TypeScript SDK metadata. While the the exact shape
//! The correct settings shape is defined in the TypeScript SDK metadata. While the exact shape
//! and validations it defines are not applied here, we should mirror them.
//! ANY CHANGES HERE NEED TO BE REFLECTED IN THE TYPESCRIPT SDK.
Expand Down
2 changes: 1 addition & 1 deletion rust/agents/scraper/src/settings.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//! Scraper configuration.
//!
//! The correct settings shape is defined in the TypeScript SDK metadata. While the the exact shape
//! The correct settings shape is defined in the TypeScript SDK metadata. While the exact shape
//! and validations it defines are not applied here, we should mirror them.
//! ANY CHANGES HERE NEED TO BE REFLECTED IN THE TYPESCRIPT SDK.
Expand Down
2 changes: 1 addition & 1 deletion rust/agents/validator/src/settings.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//! Validator configuration.
//!
//! The correct settings shape is defined in the TypeScript SDK metadata. While the the exact shape
//! The correct settings shape is defined in the TypeScript SDK metadata. While the exact shape
//! and validations it defines are not applied here, we should mirror them.
//! ANY CHANGES HERE NEED TO BE REFLECTED IN THE TYPESCRIPT SDK.
Expand Down
2 changes: 1 addition & 1 deletion rust/hyperlane-base/src/contract_sync/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ where
// from the loop (the sleep duration)
#[allow(clippy::never_loop)]
CursorAction::Query(range) => loop {
debug!(?range, "Looking for for events in index range");
debug!(?range, "Looking for events in index range");

let logs = match self.indexer.fetch_logs(range.clone()).await {
Ok(logs) => logs,
Expand Down
2 changes: 1 addition & 1 deletion rust/hyperlane-base/src/settings/mod.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//! Common settings and configuration for Hyperlane agents
//!
//! The correct settings shape is defined in the TypeScript SDK metadata. While the the exact shape
//! The correct settings shape is defined in the TypeScript SDK metadata. While the exact shape
//! and validations it defines are not applied here, we should mirror them.
//! ANY CHANGES HERE NEED TO BE REFLECTED IN THE TYPESCRIPT SDK.
//!
Expand Down
2 changes: 1 addition & 1 deletion rust/hyperlane-base/src/settings/parser/mod.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//! This module is responsible for parsing the agent's settings.
//!
//! The correct settings shape is defined in the TypeScript SDK metadata. While the the exact shape
//! The correct settings shape is defined in the TypeScript SDK metadata. While the exact shape
//! and validations it defines are not applied here, we should mirror them.
//! ANY CHANGES HERE NEED TO BE REFLECTED IN THE TYPESCRIPT SDK.
Expand Down
2 changes: 1 addition & 1 deletion typescript/sdk/src/metadata/agentConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ const AgentCosmosChainMetadataSchema = z.object({
amount: z
.string()
.regex(/^(\d*[.])?\d+$/)
.describe('The the gas price, in denom, to pay for each unit of gas'),
.describe('The gas price, in denom, to pay for each unit of gas'),
}),
contractAddressBytes: z
.number()
Expand Down

0 comments on commit 806f984

Please sign in to comment.