chore: MoveStatsReader trait to storage-api and reexport it from old provider crate (#12485)

This commit is contained in:
Panagiotis Ganelis
2024-11-12 21:58:16 +01:00
committed by GitHub
parent b6558f6bcf
commit 8221e5bd54
4 changed files with 5 additions and 5 deletions

View File

@@ -46,8 +46,8 @@ pub use reth_chain_state::{
CanonStateNotifications, CanonStateSubscriptions,
};
// reexport HistoryWriter trait
pub use reth_storage_api::HistoryWriter;
// reexport traits to avoid breaking changes
pub use reth_storage_api::{HistoryWriter, StatsReader};
pub(crate) fn to_range<R: std::ops::RangeBounds<u64>>(bounds: R) -> std::ops::Range<u64> {
let start = match bounds.start_bound() {

View File

@@ -29,9 +29,6 @@ pub use trie::{StorageTrieWriter, TrieWriter};
mod static_file_provider;
pub use static_file_provider::StaticFileProviderFactory;
mod stats;
pub use stats::StatsReader;
mod full;
pub use full::{FullProvider, FullRpcProvider};

View File

@@ -56,3 +56,6 @@ pub mod noop;
mod history;
pub use history::*;
mod stats;
pub use stats::*;