mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-20 13:24:44 +00:00
Clippy 1.49.0 updates and dht persistence test fix (#2156)
## Issue Addressed `test_dht_persistence` failing ## Proposed Changes Bind `NetworkService::start` to an underscore prefixed variable rather than `_`. `_` was causing it to be dropped immediately This was failing 5/100 times before this update, but I haven't been able to get it to fail after updating it Co-authored-by: realbigsean <seananderson33@gmail.com>
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
use slog::Logger;
|
||||
use sloggers::Build;
|
||||
use std::collections::HashSet;
|
||||
use std::iter::FromIterator;
|
||||
use types::{
|
||||
AggregateSignature, AttestationData, AttesterSlashing, BeaconBlockHeader, Checkpoint, Epoch,
|
||||
Hash256, IndexedAttestation, MainnetEthSpec, Signature, SignedBeaconBlockHeader, Slot,
|
||||
@@ -59,8 +58,14 @@ pub fn hashset_intersection(
|
||||
attestation_1_indices: &[u64],
|
||||
attestation_2_indices: &[u64],
|
||||
) -> HashSet<u64> {
|
||||
&HashSet::from_iter(attestation_1_indices.iter().copied())
|
||||
& &HashSet::from_iter(attestation_2_indices.iter().copied())
|
||||
&attestation_1_indices
|
||||
.iter()
|
||||
.copied()
|
||||
.collect::<HashSet<u64>>()
|
||||
& &attestation_2_indices
|
||||
.iter()
|
||||
.copied()
|
||||
.collect::<HashSet<u64>>()
|
||||
}
|
||||
|
||||
pub fn slashed_validators_from_slashings(slashings: &HashSet<AttesterSlashing<E>>) -> HashSet<u64> {
|
||||
|
||||
Reference in New Issue
Block a user