Skip to content

Restore Slots::open_indexed so main builds the call worker - #108

Merged
James-Chapman merged 1 commit into
mainfrom
claude/fix-open-indexed
Nov 26, 2026
Merged

James-Chapman merged 1 commit into
mainfrom
claude/fix-open-indexed

Conversation

@James-Chapman

Copy link
Copy Markdown
Contributor

Summary

main at 5277241 does not compile the call worker. #107 removed Slots::open_indexed, and #103 added a new caller of it. Each PR compiled alone. This PR restores the method.

What changed

Why it changed

#107 removed Slots::open_indexed with what was then its last caller, the level meters' track list. #103 (ADR-0066) added a new caller: the statistics probe in crates/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 fixes main without 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_playout also checks that open_indexed lists only the open connection, with its index.

New

None

Checks run on Windows at 7b6756c, all exit 0:

  • cargo fmt --all -- --check.
  • With crt-static: cargo clippy --locked -p persephone-call-worker --all-targets -- -D warnings.
  • With crt-static: cargo test --locked -p persephone-call-worker. 235 passed, 3 ignored. given_worker_runtime_when_tcp_connects_then_it_does_not_panic was 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

#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>
@coderabbitai

coderabbitai Bot commented Nov 26, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You'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.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 952e9660-3133-4709-8e73-d0d818888013
Commits

Reviewing files that changed from the base of the PR and between 5277241 and 7b6756c.

Files selected for processing: 1

  • crates/call-worker/src/mapping.rs

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.

Share

@omg-review-bot

omg-review-bot Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

✅ Review posted on 7b6756c

  • Started: 2026-11-26 08:18:28 UTC
  • Model: beam
  • Review skill: code-change-review

The review is posted here.

@omg-review-bot omg-review-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 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.

@sonarqubecloud

Copy link
Copy Markdown

@James-Chapman
James-Chapman merged commit b99dc72 into main Nov 26, 2026
13 checks passed
@James-Chapman
James-Chapman deleted the claude/fix-open-indexed branch November 26, 2026 11:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant