Files
foxhunt/data/src
jgrusewski 77cefd53b2 fix(data, ml): replace expect() with recoverable error handling in streaming and Clone
- Replace `.expect("INVARIANT: rate_limit_per_second must be > 0")` with
  `.unwrap_or(NonZeroU32::new(100).expect("100 > 0"))` — falls back to 100 rps
  when config value is zero instead of panicking
- Replace `.expect("INVARIANT: Semaphore should never be closed")` in batch
  processor loop with a match that logs and breaks cleanly on semaphore closure
- Replace `.expect("Failed to clone Mamba2SSM")` in Clone impl with a match
  that logs the error and calls `std::process::abort()` — makes the panic
  explicit and avoids unwrap_used lint

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-21 23:14:27 +01:00
..