Skip to content

Commit

Permalink
chore: rename conflicting dump_config.rs files
Browse files Browse the repository at this point in the history
  • Loading branch information
dafnamatsry committed Jul 17, 2024
1 parent 5ef093f commit d852ea1
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use papyrus_config::dumping::SerializeConfig;
use starknet_mempool_node::config::{MempoolNodeConfig, DEFAULT_CONFIG_PATH};

/// Updates the default config file by:
/// cargo run --bin dump_config -q
/// cargo run --bin mempool_dump_config -q
fn main() {
MempoolNodeConfig::default()
.dump_to_file(&vec![], DEFAULT_CONFIG_PATH)
Expand Down
4 changes: 2 additions & 2 deletions crates/mempool_node/src/config/config_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ fn test_components_config_validation() {

/// Test the validation of the struct MempoolNodeConfig and that the default config file is up to
/// date. To update the default config file, run:
/// cargo run --bin dump_config -q
/// cargo run --bin mempool_dump_config -q
#[test]
fn default_config_file_is_up_to_date() {
let default_config = MempoolNodeConfig::default();
Expand All @@ -69,7 +69,7 @@ fn default_config_file_is_up_to_date() {
println!(
"{}",
"Default config file doesn't match the default NodeConfig implementation. Please update \
it using the dump_config binary."
it using the mempool_dump_config binary."
.purple()
.bold()
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use papyrus_node::config::pointers::CONFIG_POINTERS;
use papyrus_node::config::{NodeConfig, DEFAULT_CONFIG_PATH};

/// Updates the default config file by:
/// cargo run --bin dump_config -q
/// cargo run --bin papyrus_dump_config -q
#[cfg_attr(coverage_nightly, coverage_attribute)]
fn main() {
#[cfg(feature = "rpc")]
Expand Down
2 changes: 1 addition & 1 deletion crates/papyrus_node/src/config/config_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ fn default_config_file_is_up_to_date() {
println!(
"{}",
"Default config file doesn't match the default NodeConfig implementation. Please update \
it using the dump_config binary."
it using the papyrus_dump_config binary."
.purple()
.bold()
);
Expand Down

0 comments on commit d852ea1

Please sign in to comment.