Skip to content

Commit 90e861b

Browse files
committed
sim-cli/refactor: standardize default variable naming
1 parent d8c165d commit 90e861b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sim-cli/src/main.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ pub const DEFAULT_DATA_DIR: &str = ".";
2121
pub const DEFAULT_SIM_FILE: &str = "sim.json";
2222

2323
/// The default expected payment amount for the simulation, around ~$10 at the time of writing.
24-
pub const EXPECTED_PAYMENT_AMOUNT: u64 = 3_800_000;
24+
pub const DEFAULT_EXPECTED_PAYMENT_AMOUNT: u64 = 3_800_000;
2525

2626
/// The number of times over each node in the network sends its total deployed capacity in a calendar month.
27-
pub const ACTIVITY_MULTIPLIER: f64 = 2.0;
27+
pub const DEFAULT_ACTIVITY_MULTIPLIER: f64 = 2.0;
2828

2929
/// Default batch size to flush result data to disk
3030
const DEFAULT_PRINT_BATCH_SIZE: u32 = 500;
@@ -66,10 +66,10 @@ struct Cli {
6666
#[clap(long, short, verbatim_doc_comment, default_value = "info")]
6767
log_level: LevelFilter,
6868
/// Expected payment amount for the random activity generator
69-
#[clap(long, short, default_value_t = EXPECTED_PAYMENT_AMOUNT, value_parser = clap::builder::RangedU64ValueParser::<u64>::new().range(1..u64::MAX))]
69+
#[clap(long, short, default_value_t = DEFAULT_EXPECTED_PAYMENT_AMOUNT, value_parser = clap::builder::RangedU64ValueParser::<u64>::new().range(1..u64::MAX))]
7070
expected_pmt_amt: u64,
7171
/// Multiplier of the overall network capacity used by the random activity generator
72-
#[clap(long, short, default_value_t = ACTIVITY_MULTIPLIER, value_parser = clap::builder::StringValueParser::new().try_map(deserialize_f64_greater_than_zero))]
72+
#[clap(long, short, default_value_t = DEFAULT_ACTIVITY_MULTIPLIER, value_parser = clap::builder::StringValueParser::new().try_map(deserialize_f64_greater_than_zero))]
7373
capacity_multiplier: f64,
7474
/// Do not create an output file containing the simulations results
7575
#[clap(long, default_value_t = false)]

0 commit comments

Comments
 (0)