Skip to content

Commit

Permalink
fix minor warnings under devnet-prealloc feature code
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelsutton committed Apr 9, 2024
1 parent 91ebd83 commit 82a9fe9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion testing/integration/src/mempool_benchmarks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ async fn bench_bbt_latency_2() {

let args = ArgsBuilder::simnet(TX_LEVEL_WIDTH as u64 * CONTRACT_FACTOR, 500)
.prealloc_address(prealloc_address)
.apply_args(|args| Daemon::fill_args_with_random_ports(args))
.apply_args(Daemon::fill_args_with_random_ports)
.build();

let network = args.network();
Expand Down
6 changes: 3 additions & 3 deletions testing/integration/src/subscribe_benchmarks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const NOTIFY_CLIENTS: usize = 500;
const MAX_ADDRESSES: usize = 1_000_000;
const WALLET_ADDRESSES: usize = 800;

const STAT_FOLDER: &'static str = "../../../analyze/mem-logs";
const STAT_FOLDER: &str = "../../../analyze/mem-logs";

fn create_client_addresses(index: usize, network_id: &NetworkId) -> Vec<Address> {
// Process in heaviest to lightest requests order, maximizing messages memory footprint
Expand Down Expand Up @@ -82,7 +82,7 @@ async fn utxos_changed_subscriptions_sanity_check() {

let (prealloc_sk, _) = secp256k1::generate_keypair(&mut thread_rng());
let args = ArgsBuilder::simnet(TX_LEVEL_WIDTH as u64 * CONTRACT_FACTOR, PREALLOC_AMOUNT)
.apply_args(|args| Daemon::fill_args_with_random_ports(args))
.apply_args(Daemon::fill_args_with_random_ports)
.build();

// Start the daemon
Expand Down Expand Up @@ -180,7 +180,7 @@ async fn utxos_changed_subscriptions_client(address_cycle_seconds: u64, address_
.prealloc_address(prealloc_address)
.max_tracked_addresses(MAX_ADDRESSES)
.utxoindex(true)
.apply_args(|args| Daemon::fill_args_with_random_ports(args))
.apply_args(Daemon::fill_args_with_random_ports)
.build();
let network = args.network();
let params: Params = network.into();
Expand Down

0 comments on commit 82a9fe9

Please sign in to comment.