Update Rust Edition to 2024 (#7766)

* #7749

Thanks @dknopik and @michaelsproul for your help!
This commit is contained in:
chonghe
2025-08-13 11:04:31 +08:00
committed by GitHub
parent bd6b8b6a65
commit 522bd9e9c6
468 changed files with 3594 additions and 3396 deletions

View File

@@ -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) => {