mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: Now cargo fmt sorts imports and trait methods
This commit is contained in:
@ -1,8 +1,8 @@
|
||||
use super::service::{BlockHashCache, BlockPoller};
|
||||
use crate::{chainspec::HlChainSpec, node::network::HlNetworkPrimitives, HlPrimitives};
|
||||
use crate::{HlPrimitives, chainspec::HlChainSpec, node::network::HlNetworkPrimitives};
|
||||
use reth_network::{
|
||||
config::{rng_secret_key, SecretKey},
|
||||
NetworkConfig, NetworkManager, PeersConfig,
|
||||
config::{SecretKey, rng_secret_key},
|
||||
};
|
||||
use reth_network_peers::TrustedPeer;
|
||||
use reth_provider::test_utils::NoopProvider;
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
use super::{BlockSource, BlockSourceBoxed};
|
||||
use crate::node::types::BlockAndReceipts;
|
||||
use futures::{future::BoxFuture, FutureExt};
|
||||
use futures::{FutureExt, future::BoxFuture};
|
||||
use reth_network::cache::LruMap;
|
||||
use std::sync::{Arc, RwLock};
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
use super::{scan::Scanner, time_utils::TimeUtils, HOURLY_SUBDIR};
|
||||
use super::{HOURLY_SUBDIR, scan::Scanner, time_utils::TimeUtils};
|
||||
use crate::node::types::BlockAndReceipts;
|
||||
use std::{
|
||||
fs::File,
|
||||
|
||||
@ -14,7 +14,7 @@ use self::{
|
||||
use super::{BlockSource, BlockSourceBoxed};
|
||||
use crate::node::types::BlockAndReceipts;
|
||||
use futures::future::BoxFuture;
|
||||
use reth_metrics::{metrics, metrics::Counter, Metrics};
|
||||
use reth_metrics::{Metrics, metrics, metrics::Counter};
|
||||
use std::{
|
||||
path::{Path, PathBuf},
|
||||
sync::Arc,
|
||||
@ -75,8 +75,8 @@ impl BlockSource for HlNodeBlockSource {
|
||||
let too_soon = now - last_poll_time < args.fallback_threshold;
|
||||
if more_recent && too_soon {
|
||||
return Err(eyre::eyre!(
|
||||
"Not found locally; limiting polling rate before fallback so that hl-node has chance to catch up"
|
||||
));
|
||||
"Not found locally; limiting polling rate before fallback so that hl-node has chance to catch up"
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -1,10 +1,10 @@
|
||||
use super::*;
|
||||
use crate::{
|
||||
node::types::{reth_compat, ReadPrecompileCalls},
|
||||
pseudo_peer::sources::{hl_node::scan::LocalBlockAndReceipts, LocalBlockSource},
|
||||
node::types::{ReadPrecompileCalls, reth_compat},
|
||||
pseudo_peer::sources::{LocalBlockSource, hl_node::scan::LocalBlockAndReceipts},
|
||||
};
|
||||
use alloy_consensus::{BlockBody, Header};
|
||||
use alloy_primitives::{Address, Bloom, Bytes, B256, B64, U256};
|
||||
use alloy_primitives::{Address, B64, B256, Bloom, Bytes, U256};
|
||||
use std::{io::Write, time::Duration};
|
||||
|
||||
const DEFAULT_FALLBACK_THRESHOLD_FOR_TEST: Duration = Duration::from_millis(5000);
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
use std::path::Path;
|
||||
use time::{macros::format_description, Date, OffsetDateTime, Time};
|
||||
use time::{Date, OffsetDateTime, Time, macros::format_description};
|
||||
|
||||
pub struct TimeUtils;
|
||||
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
use super::{utils, BlockSource};
|
||||
use super::{BlockSource, utils};
|
||||
use crate::node::types::BlockAndReceipts;
|
||||
use eyre::Context;
|
||||
use futures::{future::BoxFuture, FutureExt};
|
||||
use reth_metrics::{metrics, metrics::Counter, Metrics};
|
||||
use futures::{FutureExt, future::BoxFuture};
|
||||
use reth_metrics::{Metrics, metrics, metrics::Counter};
|
||||
use std::path::PathBuf;
|
||||
use tracing::info;
|
||||
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
use super::{utils, BlockSource};
|
||||
use super::{BlockSource, utils};
|
||||
use crate::node::types::BlockAndReceipts;
|
||||
use aws_sdk_s3::types::RequestPayer;
|
||||
use futures::{future::BoxFuture, FutureExt};
|
||||
use reth_metrics::{metrics, metrics::Counter, Metrics};
|
||||
use futures::{FutureExt, future::BoxFuture};
|
||||
use reth_metrics::{Metrics, metrics, metrics::Counter};
|
||||
use std::{sync::Arc, time::Duration};
|
||||
use tracing::info;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user