mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-01-11 00:08:13 -05:00
chore: Relax the bounds on DBProvider (#15781)
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user