You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
channels_sv2: address review on the configurable past-jobs cap
- Test the client `StandardChannel` override. That channel keeps its own
`past_jobs`/`past_job_order` and eviction path rather than delegating to
`JobStore`, so it was the one place `max_past_jobs` could regress unnoticed:
the override was covered for the client extended channel and for the server via
`JobStore`, but not here.
- Factor the resolver. `max_past_jobs.map(NonZeroUsize::get).unwrap_or(...)` was
copy-pasted into four constructors; each side now routes through a
`resolve_max_past_jobs` helper colocated with its own default, so changing a
default touches one line rather than four.
- `debug_assert!(max_past_jobs > 0)` in `JobStore::new`. The nonzero guarantee
lived only in the callers; this documents and enforces it internally without
changing the signature.
- Rename the new tests off "honour" — the crate uses American spellings
throughout.
- Make the client `MAX_PAST_JOBS` doc links explicit (`super::MAX_PAST_JOBS`) so
they no longer depend on an import that the resolver made otherwise unused.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
0 commit comments