Skip to content

Commit

Permalink
remove ref on Database as it has trait impl
Browse files Browse the repository at this point in the history
  • Loading branch information
rakita committed Sep 15, 2023
1 parent f2fe3c3 commit d3cec9f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions bin/reth/src/node/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,7 @@ impl<Ext: RethCliExt> NodeCommand<Ext> {
/// NOTE: The download is attempted with infinite retries.
async fn lookup_or_fetch_tip<DB, Client>(
&self,
db: &DB,
db: DB,
client: Client,
tip: H256,
) -> Result<u64, reth_interfaces::Error>
Expand All @@ -707,7 +707,7 @@ impl<Ext: RethCliExt> NodeCommand<Ext> {
/// NOTE: The download is attempted with infinite retries.
async fn fetch_tip<DB, Client>(
&self,
db: &DB,
db: DB,
client: Client,
tip: BlockHashOrNumber,
) -> Result<SealedHeader, reth_interfaces::Error>
Expand Down
2 changes: 1 addition & 1 deletion crates/consensus/beacon/src/engine/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2057,7 +2057,7 @@ mod tests {
}

fn insert_blocks<'a, DB: Database>(
db: &DB,
db: DB,
chain: Arc<ChainSpec>,
mut blocks: impl Iterator<Item = &'a SealedBlock>,
) {
Expand Down
2 changes: 1 addition & 1 deletion crates/revm/revm-inspectors/src/tracing/builder/geth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ impl GethTraceBuilder {
&self,
ResultAndState { state, .. }: &ResultAndState,
prestate_config: PreStateConfig,
db: &DB,
db: DB,
) -> Result<PreStateFrame, DB::Error>
where
DB: DatabaseRef,
Expand Down
6 changes: 3 additions & 3 deletions crates/revm/revm-inspectors/src/tracing/builder/parity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ impl ParityTraceBuilder {
self,
res: ResultAndState,
trace_types: &HashSet<TraceType>,
db: &DB,
db: DB,
) -> Result<TraceResults, DB::Error>
where
DB: DatabaseRef,
Expand Down Expand Up @@ -535,7 +535,7 @@ where
///
/// iteratively fill the [VmTrace] code fields
pub(crate) fn populate_vm_trace_bytecodes<DB, I>(
db: &DB,
db: DB,
trace: &mut VmTrace,
breadth_first_addresses: I,
) -> Result<(), DB::Error>
Expand Down Expand Up @@ -575,7 +575,7 @@ where
/// contains all the accounts that are in the state map and never has to fetch them from disk.
pub fn populate_account_balance_nonce_diffs<DB, I>(
state_diff: &mut StateDiff,
db: &DB,
db: DB,
account_diffs: I,
) -> Result<(), DB::Error>
where
Expand Down

0 comments on commit d3cec9f

Please sign in to comment.