20260501 修复CurrentRepoIndex完整性并优化replay guard

This commit is contained in:
2026-05-03 08:26:18 +08:00
parent ad61caf271
commit b3b44d50c6
10 changed files with 1230 additions and 61 deletions

View File

@@ -9,6 +9,7 @@ pub struct ParallelPhase1Config {
pub struct ParallelPhase2Config {
pub object_workers: usize,
pub worker_queue_capacity: usize,
pub ready_batch_size: usize,
}
impl Default for ParallelPhase2Config {
@@ -16,6 +17,7 @@ impl Default for ParallelPhase2Config {
Self {
object_workers: 8,
worker_queue_capacity: 256,
ready_batch_size: 256,
}
}
}
@@ -47,5 +49,6 @@ mod tests {
let cfg = ParallelPhase2Config::default();
assert!(cfg.object_workers > 0);
assert!(cfg.worker_queue_capacity > 0);
assert!(cfg.ready_batch_size > 0);
}
}