chore: Relax the bounds on DBProvider (#15781)

This commit is contained in:
and-cb
2025-04-17 02:59:15 -07:00
committed by GitHub
parent 44a695f7aa
commit b4cb1f4a41
2 changed files with 4 additions and 4 deletions

View File

@@ -11,7 +11,7 @@ use reth_storage_errors::provider::ProviderResult;
/// Account reader
#[auto_impl(&, Arc, Box)]
pub trait AccountReader: Send + Sync {
pub trait AccountReader {
/// Get basic account information.
///
/// Returns `None` if the account doesn't exist.
@@ -20,7 +20,7 @@ pub trait AccountReader: Send + Sync {
/// Account reader
#[auto_impl(&, Arc, Box)]
pub trait AccountExtReader: Send + Sync {
pub trait AccountExtReader {
/// Iterate over account changesets and return all account address that were changed.
fn changed_accounts_with_range(
&self,
@@ -48,7 +48,7 @@ pub trait AccountExtReader: Send + Sync {
/// AccountChange reader
#[auto_impl(&, Arc, Box)]
pub trait ChangeSetReader: Send + Sync {
pub trait ChangeSetReader {
/// Iterate over account changesets and return the account state from before this block.
fn account_block_changeset(
&self,

View File

@@ -12,7 +12,7 @@ use reth_prune_types::PruneModes;
use reth_storage_errors::provider::ProviderResult;
/// Database provider.
pub trait DBProvider: Send + Sync + Sized + 'static {
pub trait DBProvider: Sized {
/// Underlying database transaction held by the provider.
type Tx: DbTx;