Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruvja committed Oct 18, 2024
1 parent ec57402 commit b207c12
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -287,9 +287,7 @@ impl ibc::ValidationContext for IbcStorage<'_, '_> {
}
}

fn get_client_validation_context(&self) -> &Self::V {
self
}
fn get_client_validation_context(&self) -> &Self::V { self }

fn get_compatible_versions(&self) -> Vec<ibc::conn::Version> {
ibc::conn::get_compatible_versions()
Expand Down Expand Up @@ -402,7 +400,7 @@ fn calculate_block_delay(
if max_expected_time_per_block.is_zero() {
return 0;
}
let delay = delay_period_time.as_secs_f64()
/ max_expected_time_per_block.as_secs_f64();
let delay = delay_period_time.as_secs_f64() /
max_expected_time_per_block.as_secs_f64();
delay.ceil() as u64
}

0 comments on commit b207c12

Please sign in to comment.