Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions ampc-anon-stats/src/server/config/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,10 @@ pub struct AnonStatsServerConfig {
/// If the available job size is smaller than this, the party will wait until enough data is available.
pub min_2d_job_size: usize,

#[serde(default = "default_min_2d_job_size_opposite_mirror_match")]
/// Minimum job size for 2D anon stats computation with opposite mirror match.
pub min_2d_job_size_opposite_mirror_match: usize,

#[serde(default = "default_min_face_job_size")]
/// Minimum job size for Face anon stats computation.
/// If the available job size is smaller than this, the party will wait until enough data is available.
Expand Down Expand Up @@ -234,6 +238,10 @@ fn default_min_2d_job_size() -> usize {
1000
}

fn default_min_2d_job_size_opposite_mirror_match() -> usize {
20
}

fn default_min_face_job_size() -> usize {
1000
}
Expand Down Expand Up @@ -336,6 +344,7 @@ impl AnonStatsServerConfig {
shutdown_last_results_sync_timeout_secs:
default_shutdown_last_results_sync_timeout_secs(),
tls: None,
min_2d_job_size_opposite_mirror_match: default_min_2d_job_size_opposite_mirror_match(),
}
}

Expand Down
Loading