mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-07 08:52:54 +00:00
Update Rust Edition to 2024 (#7766)
* #7749 Thanks @dknopik and @michaelsproul for your help!
This commit is contained in:
@@ -261,8 +261,8 @@ impl DoppelgangerService {
|
||||
continue;
|
||||
}
|
||||
|
||||
if let Some(slot) = slot_clock.now() {
|
||||
if let Err(e) = service
|
||||
if let Some(slot) = slot_clock.now()
|
||||
&& let Err(e) = service
|
||||
.detect_doppelgangers::<E, _, _, _, _>(
|
||||
slot,
|
||||
&get_index,
|
||||
@@ -270,12 +270,11 @@ impl DoppelgangerService {
|
||||
&mut shutdown_func,
|
||||
)
|
||||
.await
|
||||
{
|
||||
error!(
|
||||
error = ?e,
|
||||
"Error during doppelganger detection"
|
||||
);
|
||||
}
|
||||
{
|
||||
error!(
|
||||
error = ?e,
|
||||
"Error during doppelganger detection"
|
||||
);
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -603,8 +602,8 @@ mod test {
|
||||
use std::future;
|
||||
use std::time::Duration;
|
||||
use types::{
|
||||
test_utils::{SeedableRng, TestRandom, XorShiftRng},
|
||||
MainnetEthSpec,
|
||||
test_utils::{SeedableRng, TestRandom, XorShiftRng},
|
||||
};
|
||||
use validator_store::DoppelgangerStatus;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user