mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-09 11:25:55 +00:00
Update Rust Edition to 2024 (#7766)
* #7749 Thanks @dknopik and @michaelsproul for your help!
This commit is contained in:
@@ -3,10 +3,10 @@ use crate::summaries_dag::{DAGStateSummary, Error as SummariesDagError, StateSum
|
||||
use parking_lot::Mutex;
|
||||
use std::collections::HashSet;
|
||||
use std::mem;
|
||||
use std::sync::{mpsc, Arc};
|
||||
use std::sync::{Arc, mpsc};
|
||||
use std::thread;
|
||||
use std::time::{Duration, SystemTime, UNIX_EPOCH};
|
||||
use store::hot_cold_store::{migrate_database, HotColdDBError};
|
||||
use store::hot_cold_store::{HotColdDBError, migrate_database};
|
||||
use store::{Error, ItemStore, Split, StoreOp};
|
||||
pub use store::{HotColdDB, MemoryStore};
|
||||
use tracing::{debug, error, info, warn};
|
||||
@@ -223,15 +223,14 @@ impl<E: EthSpec, Hot: ItemStore<E>, Cold: ItemStore<E>> BackgroundMigrator<E, Ho
|
||||
Ok(()) => {
|
||||
// Schedule another reconstruction batch if required and we have access to the
|
||||
// channel for requeueing.
|
||||
if let Some(tx) = opt_tx {
|
||||
if !db.get_anchor_info().all_historic_states_stored() {
|
||||
if let Err(e) = tx.send(Notification::Reconstruction) {
|
||||
error!(
|
||||
error = ?e,
|
||||
"Unable to requeue reconstruction notification"
|
||||
);
|
||||
}
|
||||
}
|
||||
if let Some(tx) = opt_tx
|
||||
&& !db.get_anchor_info().all_historic_states_stored()
|
||||
&& let Err(e) = tx.send(Notification::Reconstruction)
|
||||
{
|
||||
error!(
|
||||
error = ?e,
|
||||
"Unable to requeue reconstruction notification"
|
||||
);
|
||||
}
|
||||
}
|
||||
Err(e) => {
|
||||
|
||||
Reference in New Issue
Block a user