-
Notifications
You must be signed in to change notification settings - Fork 135
Also rename back to --cluster-root #636
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
WalkthroughThis pull request renames the cluster connection configuration terminology from "connect" to "root" across the codebase. In the cluster configuration, the Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
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. 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
🧹 Nitpick comments (1)
rs/moq-relay/src/cluster.rs (1)
108-110: Consider renaming the pattern variable for clarity.The pattern variable
connecton line 110 is now inconsistent with the field nameroot. While functionally correct, renaming it to something likeroot_urlwould improve readability and reduce potential confusion.Apply this diff to improve clarity:
- let root = match self.config.root.clone() { + let root = match self.config.root.clone() { // If we're using a root node, then we have to connect to it. - Some(connect) if Some(&connect) != self.config.node.as_ref() => connect, + Some(root_url) if Some(&root_url) != self.config.node.as_ref() => root_url, // Otherwise, we're the root node so we wait for other nodes to connect to us.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
rs/moq-relay/src/cluster.rs(3 hunks)rs/nix/modules/moq-relay.nix(1 hunks)
🧰 Additional context used
📓 Path-based instructions (2)
rs/moq-relay/**
📄 CodeRabbit inference engine (CLAUDE.md)
In the CDN/relay (moq-relay), do not include application logic, media codecs, or track-specific details; keep it transport-agnostic.
Files:
rs/moq-relay/src/cluster.rs
rs/**/src/**/*.rs
📄 CodeRabbit inference engine (CLAUDE.md)
Write Rust tests integrated within source files (unit tests alongside code).
Files:
rs/moq-relay/src/cluster.rs
🧬 Code graph analysis (1)
rs/moq-relay/src/cluster.rs (1)
rs/moq/src/model/origin.rs (4)
root(285-310)root(425-427)root(516-518)clone(539-541)
🔇 Additional comments (3)
rs/nix/modules/moq-relay.nix (1)
228-228: LGTM! Environment variable rename aligns with Rust configuration.The rename from
MOQ_CLUSTER_CONNECTtoMOQ_CLUSTER_ROOTcorrectly matches the corresponding change in the RustClusterConfigstruct, maintaining consistency across the configuration surface.rs/moq-relay/src/cluster.rs (2)
16-18: Well done! Backward compatibility properly maintained.The combination of serde alias
"connect"and clap alias"cluster-connect"ensures that existing configurations and CLI invocations continue to work while transitioning to the newrootterminology.
141-141: LGTM! Variable reference correctly updated.The call to
run_remotenow correctly passes&rootinstead of the previous&connect, maintaining consistency with the renamed configuration field.
Summary by CodeRabbit