diff --git a/ampc-anon-stats/src/server/config/mod.rs b/ampc-anon-stats/src/server/config/mod.rs index b3fde84..fd00bd7 100644 --- a/ampc-anon-stats/src/server/config/mod.rs +++ b/ampc-anon-stats/src/server/config/mod.rs @@ -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. @@ -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 } @@ -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(), } }