Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
ec2 committed Nov 8, 2023
1 parent bf083b5 commit a1412e1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions preprocessor/src/rotation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ use crate::{get_block_header, get_light_client_update_at_period};
pub async fn fetch_rotation_args<S: Spec, C: ClientTypes>(
client: &Client<C>,
) -> eyre::Result<CommitteeRotationArgs<S, Fr>> {
let block = get_block_header(&client, BlockId::Head).await?;
let block = get_block_header(client, BlockId::Head).await?;
let slot = block.slot;
let period = slot / (32 * 256);
debug!(
Expand All @@ -24,7 +24,7 @@ pub async fn fetch_rotation_args<S: Spec, C: ClientTypes>(
);

let mut update: LightClientUpdateCapella<512, 55, 5, 105, 6, 256, 32> =
get_light_client_update_at_period(&client, period).await?;
get_light_client_update_at_period(client, period).await?;

let pubkeys_compressed = update
.next_sync_committee
Expand Down Expand Up @@ -113,6 +113,7 @@ mod tests {
committee_update_circuit::CommitteeUpdateCircuit,
util::{gen_srs, AppCircuit, Eth2ConfigPinning, Halo2ConfigPinning},
};
use reqwest::Url;
use snark_verifier_sdk::CircuitExt;

#[tokio::test]
Expand Down
6 changes: 3 additions & 3 deletions preprocessor/src/sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ where
{ S::FINALIZED_HEADER_DEPTH },
{ S::BYTES_PER_LOGS_BLOOM },
{ S::MAX_EXTRA_DATA_BYTES },
> = get_light_client_finality_update(&client).await?;
step_args_from_finality_update(&client, finality_update).await
> = get_light_client_finality_update(client).await?;
step_args_from_finality_update(client, finality_update).await
}

pub async fn step_args_from_finality_update<S: Spec, C: ClientTypes>(
Expand All @@ -45,7 +45,7 @@ pub async fn step_args_from_finality_update<S: Spec, C: ClientTypes>(
.await
.unwrap();
let bootstrap: LightClientBootstrap<512, 5, 256, 32> =
get_light_client_bootstrap(&client, block_root).await?;
get_light_client_bootstrap(client, block_root).await?;

let pubkeys_uncompressed = bootstrap
.current_sync_committee
Expand Down

0 comments on commit a1412e1

Please sign in to comment.