Skip to content

Commit

Permalink
Fix smol bug in benches
Browse files Browse the repository at this point in the history
  • Loading branch information
Stentonian committed Jan 31, 2024
1 parent eea57b8 commit fc09ba8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions benches/criterion_benches.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ use criterion::{criterion_group, criterion_main};
use criterion::{BenchmarkId, Criterion, SamplingMode};
use statistical::*;

use dapol::{DapolConfigBuilder, DapolTree, InclusionProof, Secret};
use dapol::{DapolConfigBuilder, DapolTree, InclusionProof, Secret, InclusionProofFileType};

mod inputs;
use inputs::{max_thread_counts_greater_than, num_entities_in_range, tree_heights_in_range};
Expand Down Expand Up @@ -292,7 +292,7 @@ pub fn bench_generate_proof<T: Measurement>(c: &mut Criterion<T>) {
std::fs::create_dir_all(dir.clone()).unwrap();
let path = proof
.expect("Proof should be set")
.serialize(entity_id, dir)
.serialize(entity_id, dir, InclusionProofFileType::Binary)
.unwrap();
let file_size = std::fs::metadata(path)
.expect("Unable to get serialized tree metadata for {path}")
Expand Down

0 comments on commit fc09ba8

Please sign in to comment.