-
Notifications
You must be signed in to change notification settings - Fork 135
Revert the moq_lite changes. #787
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
WalkthroughThe PR replaces the generic type wrapper Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Organization UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (9)
🧰 Additional context used📓 Path-based instructions (1)**/*.rs📄 CodeRabbit inference engine (CLAUDE.md)
Files:
🧬 Code graph analysis (6)rs/moq-lite/src/model/track.rs (4)
rs/moq-lite/src/model/broadcast.rs (4)
rs/moq-lite/src/model/group.rs (2)
rs/moq-lite/src/model/frame.rs (4)
rs/moq-lite/src/model/origin.rs (4)
rs/hang/src/catalog/root.rs (5)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
🔇 Additional comments (9)
Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
rs/moq-relay/src/cluster.rs (1)
73-81: Add inline test module to verify Cluster initialization and methods.The initialization logic is correct, but the code violates the coding guideline requiring Rust files to include inline test modules. The
auth.rsfile in the same crate demonstrates the expected pattern with#[test]functions. Add a#[cfg(test)] mod tests { ... }block to verify theCluster::new()method and key functionality.
📜 Review details
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (9)
rs/hang/src/catalog/root.rs(2 hunks)rs/moq-lite/src/model/broadcast.rs(2 hunks)rs/moq-lite/src/model/frame.rs(2 hunks)rs/moq-lite/src/model/group.rs(1 hunks)rs/moq-lite/src/model/mod.rs(1 hunks)rs/moq-lite/src/model/origin.rs(2 hunks)rs/moq-lite/src/model/produce.rs(1 hunks)rs/moq-lite/src/model/track.rs(2 hunks)rs/moq-relay/src/cluster.rs(1 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
**/*.rs
📄 CodeRabbit inference engine (CLAUDE.md)
In Rust crates, tests should be integrated within source files using inline test modules
Files:
rs/moq-lite/src/model/track.rsrs/moq-lite/src/model/broadcast.rsrs/moq-relay/src/cluster.rsrs/moq-lite/src/model/group.rsrs/moq-lite/src/model/frame.rsrs/moq-lite/src/model/origin.rsrs/moq-lite/src/model/produce.rsrs/hang/src/catalog/root.rsrs/moq-lite/src/model/mod.rs
🧬 Code graph analysis (6)
rs/moq-lite/src/model/track.rs (4)
rs/moq-lite/src/model/broadcast.rs (2)
produce(32-36)new(57-67)rs/moq-lite/src/model/frame.rs (2)
produce(15-19)new(69-75)rs/moq-lite/src/model/group.rs (2)
produce(26-30)new(83-88)rs/moq-lite/src/model/origin.rs (5)
produce(340-344)new(17-19)new(62-67)new(112-118)new(452-471)
rs/moq-lite/src/model/broadcast.rs (4)
rs/moq-lite/src/model/frame.rs (2)
produce(15-19)new(69-75)rs/moq-lite/src/model/group.rs (2)
produce(26-30)new(83-88)rs/moq-lite/src/model/origin.rs (5)
produce(340-344)new(17-19)new(62-67)new(112-118)new(452-471)rs/moq-relay/src/cluster.rs (1)
new(73-82)
rs/moq-lite/src/model/group.rs (2)
rs/moq-lite/src/model/frame.rs (2)
produce(15-19)new(69-75)rs/moq-lite/src/model/track.rs (3)
produce(38-42)new(31-36)new(59-64)
rs/moq-lite/src/model/frame.rs (4)
rs/moq-lite/src/model/broadcast.rs (2)
produce(32-36)new(57-67)rs/moq-lite/src/model/group.rs (2)
produce(26-30)new(83-88)rs/moq-lite/src/model/origin.rs (5)
produce(340-344)new(17-19)new(62-67)new(112-118)new(452-471)rs/moq-lite/src/model/track.rs (3)
produce(38-42)new(31-36)new(59-64)
rs/moq-lite/src/model/origin.rs (4)
rs/moq-lite/src/model/broadcast.rs (1)
produce(32-36)rs/moq-lite/src/model/frame.rs (1)
produce(15-19)rs/moq-lite/src/model/group.rs (1)
produce(26-30)rs/moq-lite/src/model/track.rs (1)
produce(38-42)
rs/hang/src/catalog/root.rs (5)
rs/moq-lite/src/model/broadcast.rs (1)
produce(32-36)rs/moq-lite/src/model/frame.rs (1)
produce(15-19)rs/moq-lite/src/model/group.rs (1)
produce(26-30)rs/moq-lite/src/model/origin.rs (1)
produce(340-344)rs/moq-lite/src/model/track.rs (1)
produce(38-42)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
- GitHub Check: Check
🔇 Additional comments (9)
rs/moq-lite/src/model/produce.rs (1)
7-10: LGTM! Clean rename fromPairtoProduce.The type rename is straightforward and makes the purpose more explicit. The generic parameters and public fields remain unchanged, maintaining the same functionality with a more descriptive name.
rs/moq-lite/src/model/mod.rs (1)
5-12: LGTM! Module organization updated consistently.The module declaration and re-export are updated to match the
Producetype rename. The change maintains the same public API surface while using the more descriptive module name.rs/moq-lite/src/model/origin.rs (1)
340-344: LGTM! Consistent update to useProducewrapper.The
produce()method now returnsProduce<OriginProducer, OriginConsumer>following the same pattern as other model types. The implementation correctly constructs the producer, obtains its consumer, and wraps them in the newProducetype.rs/moq-lite/src/model/broadcast.rs (1)
32-36: LGTM! Broadcast produce method updated consistently.The changes follow the established pattern across all model types, returning
Produce<BroadcastProducer, BroadcastConsumer>with proper construction.rs/moq-lite/src/model/track.rs (1)
38-42: LGTM! Track produce method aligned with the refactoring.The return type and construction are updated to use
Produce<TrackProducer, TrackConsumer>, maintaining consistency across the codebase.rs/moq-lite/src/model/group.rs (1)
26-30: LGTM! Group produce method updated consistently.The changes align with the project-wide refactoring, using
Produce<GroupProducer, GroupConsumer>with the standard construction pattern.rs/hang/src/catalog/root.rs (1)
86-93: LGTM! Consumer code updated to match moq-lite API change.The catalog produce method correctly adopts the new
Producetype from moq-lite, maintaining the same functionality with updated imports and construction.rs/moq-lite/src/model/frame.rs (1)
15-19: LGTM! Frame produce method completes the consistent refactoring.All model types (Frame, Group, Track, Origin, Broadcast) now consistently return
Produce<Producer, Consumer>from theirproduce()methods, providing a unified API pattern across the codebase.rs/moq-relay/src/cluster.rs (1)
60-70: LGTM!The type migration from
PairtoProduceis consistent across all field declarations. The access patterns (.producer,.consumer) used throughout the file remain compatible with this change.
Not worth the semver bump.