Skip to content

Commit

Permalink
chore: rm utils.rs from cli crate (#9132)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse authored Jun 27, 2024
1 parent 16fc18b commit d3091cb
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 12 deletions.
10 changes: 9 additions & 1 deletion bin/reth/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,15 @@
pub mod cli;
pub mod commands;
mod macros;
pub mod utils;

/// Re-exported utils.
pub mod utils {
pub use reth_db::open_db_read_only;

/// Re-exported from `reth_node_core`, also to prevent a breaking change. See the comment
/// on the `reth_node_core::args` re-export for more details.
pub use reth_node_core::utils::*;
}

/// Re-exported payload related types
pub mod payload {
Expand Down
10 changes: 0 additions & 10 deletions bin/reth/src/utils.rs

This file was deleted.

2 changes: 1 addition & 1 deletion examples/rpc-db/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ use reth::{
providers::{BlockchainProvider, StaticFileProvider},
ProviderFactory,
},
utils::db::open_db_read_only,
utils::open_db_read_only,
};
use reth_chainspec::ChainSpecBuilder;
use reth_db::mdbx::DatabaseArguments;
Expand Down

0 comments on commit d3091cb

Please sign in to comment.