Skip to content

Commit

Permalink
chore: Move HistoryWriter trait to storage-api and reexport it fr…
Browse files Browse the repository at this point in the history
…om old `provider` crate (#12480)
  • Loading branch information
PanGan21 authored Nov 12, 2024
1 parent 4a8eb7a commit fa5daef
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions crates/storage/provider/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ pub use reth_chain_state::{
CanonStateNotifications, CanonStateSubscriptions,
};

// reexport HistoryWriter trait
pub use reth_storage_api::HistoryWriter;

pub(crate) fn to_range<R: std::ops::RangeBounds<u64>>(bounds: R) -> std::ops::Range<u64> {
let start = match bounds.start_bound() {
std::ops::Bound::Included(&v) => v,
Expand Down
3 changes: 0 additions & 3 deletions crates/storage/provider/src/traits/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@ pub use hashing::HashingWriter;
mod trie;
pub use trie::{StorageTrieWriter, TrieWriter};

mod history;
pub use history::HistoryWriter;

mod static_file_provider;
pub use static_file_provider::StaticFileProviderFactory;

Expand Down
1 change: 1 addition & 0 deletions crates/storage/storage-api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ reth-prune-types.workspace = true
reth-stages-types.workspace = true
reth-storage-errors.workspace = true
reth-trie.workspace = true
reth-db.workspace = true

# ethereum
alloy-eips.workspace = true
Expand Down
File renamed without changes.
3 changes: 3 additions & 0 deletions crates/storage/storage-api/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,6 @@ mod database_provider;
pub use database_provider::*;

pub mod noop;

mod history;
pub use history::*;

0 comments on commit fa5daef

Please sign in to comment.