mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: rename ShareableDatabase to ProviderFactory (#3121)
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
|
||||
use reth_db::database::Database;
|
||||
use reth_primitives::ChainSpec;
|
||||
use reth_provider::ShareableDatabase;
|
||||
use reth_provider::ProviderFactory;
|
||||
use std::sync::Arc;
|
||||
|
||||
/// A container for external components.
|
||||
@ -35,7 +35,7 @@ impl<DB, C, EF> TreeExternals<DB, C, EF> {
|
||||
|
||||
impl<DB: Database, C, EF> TreeExternals<DB, C, EF> {
|
||||
/// Return shareable database helper structure.
|
||||
pub fn database(&self) -> ShareableDatabase<&DB> {
|
||||
ShareableDatabase::new(&self.db, self.chain_spec.clone())
|
||||
pub fn database(&self) -> ProviderFactory<&DB> {
|
||||
ProviderFactory::new(&self.db, self.chain_spec.clone())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user