Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion crates/cli/commands/src/db/checksum/rocksdb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ use reth_db::{tables, DatabaseEnv};
use reth_db_api::table::Table;
use reth_db_common::DbTool;
use reth_node_builder::NodeTypesWithDBAdapter;
use reth_primitives_traits::FastInstant as Instant;
use reth_provider::RocksDBProviderFactory;
use std::{hash::Hasher, time::Instant};
use std::hash::Hasher;
use tracing::info;

/// RocksDB tables that can be checksummed.
Expand Down
3 changes: 2 additions & 1 deletion crates/cli/commands/src/download/manifest_cmd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ use clap::Parser;
use eyre::{Result, WrapErr};
use reth_db::{mdbx::DatabaseArguments, open_db_read_only, tables, Database};
use reth_db_api::transaction::DbTx;
use reth_primitives_traits::FastInstant as Instant;
use reth_stages_types::StageId;
use reth_static_file_types::DEFAULT_BLOCKS_PER_STATIC_FILE;
use std::{path::PathBuf, time::Instant};
use std::path::PathBuf;
use tracing::{info, warn};

/// Generate modular chunk archives and a snapshot manifest from a source datadir.
Expand Down
3 changes: 2 additions & 1 deletion crates/cli/commands/src/stage/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ use reth_node_metrics::{
server::{MetricServer, MetricServerConfig},
version::VersionInfo,
};
use reth_primitives_traits::FastInstant as Instant;
use reth_provider::{
ChainSpecProvider, DBProvider, DatabaseProviderFactory, StageCheckpointReader,
StageCheckpointWriter,
Expand All @@ -40,7 +41,7 @@ use reth_stages::{
},
ExecInput, ExecOutput, ExecutionStageThresholds, Stage, StageExt, UnwindInput, UnwindOutput,
};
use std::{any::Any, net::SocketAddr, sync::Arc, time::Instant};
use std::{any::Any, net::SocketAddr, sync::Arc};
use tokio::sync::watch;
use tracing::*;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@

use alloy_primitives::B256;
use parking_lot::Mutex;
use reth_primitives_traits::FastInstant as Instant;
use reth_trie_sparse::{ConfigurableSparseTrie, SparseStateTrie};
use std::{sync::Arc, time::Instant};
use std::sync::Arc;
use tracing::debug;

/// Type alias for the sparse trie type used in preservation.
Expand Down
2 changes: 1 addition & 1 deletion crates/net/network/src/metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ pub struct TransactionFetcherMetrics {
#[macro_export]
macro_rules! duration_metered_exec {
($code:expr, $acc:expr) => {{
let start = std::time::Instant::now();
let start = reth_primitives_traits::FastInstant::now();

let res = $code;

Expand Down
2 changes: 1 addition & 1 deletion crates/rpc/rpc-builder/src/metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ use reth_metrics::{
metrics::{Counter, Histogram},
Metrics,
};
use reth_primitives_traits::FastInstant as Instant;
use std::{
collections::HashMap,
future::Future,
pin::Pin,
sync::Arc,
task::{Context, Poll},
time::Instant,
};
use tower::Layer;

Expand Down
Loading