Repository navigation
Restore Slots::open_indexed so main builds the call worker - #108
Conversation
#107 removed `Slots::open_indexed` with its last caller then, the level meters' track list. #103 added a new caller, the statistics probe in `session.rs`. Each compiled alone; together on `main` (5277241) the call worker does not compile. The method comes back as it was, and the mixed connections test also checks the indexed list. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 56 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
|
✅ Review posted on
The review is posted here. |
There was a problem hiding this comment.
🤖 Automated review of 7b6756c
Bot review number 1 of 30.
The change restores Slots::open_indexed with the same shape as the existing open() method, returning open connections paired with their indexes. It matches the caller in session.rs (line 2613) and the updated test, and the implementation correctly filters to Slot::Up variants. No defects found in the changed code.
No issues found.
✅ Approved: no unresolved findings at [P3] MINOR (Defect) or above.
Model beam · skill code-change-review · 1 files reviewed. Reply to an inline comment to discuss it.
|



Summary
mainat 5277241 does not compile the call worker. #107 removedSlots::open_indexed, and #103 added a new caller of it. Each PR compiled alone. This PR restores the method.What changed
crates/call-worker/src/mapping.rs:Slots::open_indexedis back as it was before Keep a bounded audio roster for the call worker's level meters #107. It lists the open connections with their indexes.Why it changed
#107 removed
Slots::open_indexedwith what was then its last caller, the level meters' track list. #103 (ADR-0066) added a new caller: the statistics probe incrates/call-worker/src/session.rs(line 2613) names each remote entry by its connection. With both merged, the build fails with E0599 (no method named open_indexed).main's macOS and Coverage jobs show this error. The same change is in #105 as 09a59c0. This PR fixesmainwithout waiting for #105, whose ADR-0067 still needs owner approval.Tests
Updated
crates/call-worker/src/mapping.rs:given_mixed_connections_then_only_open_ones_get_the_playoutalso checks thatopen_indexedlists only the open connection, with its index.New
None
Checks run on Windows at 7b6756c, all exit 0:
cargo fmt --all -- --check.cargo clippy --locked -p persephone-call-worker --all-targets -- -D warnings.cargo test --locked -p persephone-call-worker. 235 passed, 3 ignored.given_worker_runtime_when_tcp_connects_then_it_does_not_panicwas skipped: this host refuses loopback connects.Linux and macOS were not built here. The change has no platform code, and CI builds both.
🤖 Generated with Claude Code