Skip to content

Commit

Permalink
remove collect
Browse files Browse the repository at this point in the history
  • Loading branch information
GeemoCandama committed Sep 1, 2023
1 parent 89752e2 commit c0ab805
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions beacon_node/operation_pool/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ impl<T: EthSpec> OperationPool<T> {
vec![]
};

let prev_epoch_cliqued_atts: Vec<AttMaxCover<T>> = prev_epoch_cliqued_atts
let prev_epoch_cliqued_atts = prev_epoch_cliqued_atts
.iter()
.map(|(data, indexed)| AttestationRef {
checkpoint: &prev_epoch_key,
Expand All @@ -374,8 +374,7 @@ impl<T: EthSpec> OperationPool<T> {
})
.filter_map(|att| {
AttMaxCover::new(att, state, &reward_cache, total_active_balance, spec)
})
.collect();
});

let curr_epoch_cliqued_atts = self.get_clique_aggregate_attestations_for_epoch(
&curr_epoch_key,
Expand All @@ -386,7 +385,7 @@ impl<T: EthSpec> OperationPool<T> {
spec,
);

let curr_epoch_cliqued_atts: Vec<AttMaxCover<T>> = curr_epoch_cliqued_atts
let curr_epoch_cliqued_atts = curr_epoch_cliqued_atts
.iter()
.map(|(data, indexed)| AttestationRef {
checkpoint: &curr_epoch_key,
Expand All @@ -395,8 +394,7 @@ impl<T: EthSpec> OperationPool<T> {
})
.filter_map(|att| {
AttMaxCover::new(att, state, &reward_cache, total_active_balance, spec)
})
.collect();
});

let prev_epoch_limit = if let BeaconState::Base(base_state) = state {
std::cmp::min(
Expand Down

0 comments on commit c0ab805

Please sign in to comment.