Skip to content

Commit

Permalink
change max_time to be const
Browse files Browse the repository at this point in the history
  • Loading branch information
gregorycoppola committed Jan 28, 2022
1 parent 33b1d87 commit 1f49ee5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions testnet/stacks-node/src/mempool_analyzer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,11 @@ fn main() {
let chain_state_path = format!("{}/mainnet/chainstate/", &argv[1]);

let min_fee = u64::max_value();
let mut max_time = u64::max_value();

if argv.len() >= 3 {
max_time = argv[2].parse().expect("Could not parse max_time");
}
let max_time = if argv.len() >= 3 {
argv[2].parse().expect("Could not parse max_time")
} else {
u64::max_value()
};
eprintln!("mempool_analyzer: max_time {}", max_time);

let sort_db = SortitionDB::open(&sort_db_path, false)
Expand Down

0 comments on commit 1f49ee5

Please sign in to comment.