Skip to content

Commit

Permalink
cargo clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
aroralanuk committed Jan 13, 2025
1 parent 8d2a18c commit 557b0b5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ pub fn termination_invariants_met(

// this is total messages expected to be delivered
let total_messages_expected = eth_messages_expected + sol_messages_expected;
let total_messages_dispatched = total_messages_expected + sol_messages_with_non_matching_igp;

let lengths = fetch_metric(
RELAYER_METRICS_PORT,
Expand Down Expand Up @@ -140,11 +141,11 @@ pub fn termination_invariants_met(

// TestSendReceiver randomly breaks gas payments up into
// two. So we expect at least as many gas payments as messages.
if gas_payment_events_count < total_messages_expected + sol_messages_with_non_matching_igp {
if gas_payment_events_count < total_messages_dispatched {
log!(
"Relayer has {} gas payment events, expected at least {}",
gas_payment_events_count,
total_messages_expected + sol_messages_with_non_matching_igp
total_messages_dispatched
);
return Ok(false);
}
Expand All @@ -165,12 +166,13 @@ pub fn termination_invariants_met(
)?
.iter()
.sum::<u32>();
if dispatched_messages_scraped != total_messages_expected + ZERO_MERKLE_INSERTION_KATHY_MESSAGES
if dispatched_messages_scraped
!= total_messages_dispatched + ZERO_MERKLE_INSERTION_KATHY_MESSAGES
{
log!(
"Scraper has scraped {} dispatched messages, expected {}",
dispatched_messages_scraped,
total_messages_expected + ZERO_MERKLE_INSERTION_KATHY_MESSAGES,
total_messages_dispatched + ZERO_MERKLE_INSERTION_KATHY_MESSAGES,
);
return Ok(false);
}
Expand Down
1 change: 1 addition & 0 deletions rust/main/utils/run-locally/src/solana.rs
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,7 @@ pub fn initiate_solana_hyperlane_transfer(
}

#[apply(as_task)]
#[allow(clippy::get_first)]
pub fn initiate_solana_non_matching_igp_paying_transfer(
solana_cli_tools_path: PathBuf,
solana_config_path: PathBuf,
Expand Down

0 comments on commit 557b0b5

Please sign in to comment.