Skip to content

Commit

Permalink
Fix ExeUnit binary compilation with packet-trace flag
Browse files Browse the repository at this point in the history
  • Loading branch information
nieznanysprawiciel committed Jan 30, 2024
1 parent 63eb34b commit 80277a4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion exe-unit/components/transfer/tests/test_deploy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ async fn test_deploy_progress(ctx: &mut DroppableTestContext) -> anyhow::Result<
}

let chunk_size = 4096_usize;
let chunk_count = 1024 * 1;
let chunk_count = 1024;
let file_size = (chunk_size * chunk_count) as u64;
let hash = generate_random_file_with_hash(temp_dir, "rnd", chunk_size, chunk_count);

Expand Down
5 changes: 4 additions & 1 deletion exe-unit/src/bin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,11 @@ async fn main() {
};

dotenv::dotenv().ok();

#[cfg(feature = "packet-trace-enable")]
init_packet_trace()?;
if let Err(error) = init_packet_trace() {
log::warn!("Initializing packet tracing failed: {error:?}");
}

let cli: Cli = Cli::from_args();

Expand Down

0 comments on commit 80277a4

Please sign in to comment.