moq-lite: port Origin API renames from #1358#1380
Merged
kixelated merged 1 commit intotighten-moq-lite-apifrom May 5, 2026
Merged
moq-lite: port Origin API renames from #1358#1380kixelated merged 1 commit intotighten-moq-lite-apifrom
kixelated merged 1 commit intotighten-moq-lite-apifrom
Conversation
…odel) - Rename OriginProducer::publish_only / OriginConsumer::consume_only → scope. - Drop OriginProducer::consume_only and OriginProducer::try_consume_broadcast; callers go through producer.consume().scope(..) / .get_broadcast(..) so the producer surface is publish-only. - Rename OriginConsumer::try_consume_broadcast → get_broadcast (the consumer receiver and try_ prefix were both redundant). - Add BroadcastConsumer::is_closed and poll_closed (thin wrappers over conducer::Consumer) so callers can compose close-detection without spawning a task per broadcast. - Migrate every workspace caller (lite/ietf publishers, libmoq, moq-clock, moq-relay). Keeps the existing OriginNode / mpsc / web_async::spawn implementation, the OriginAnnounce tuple, and the announced/try_announced/announced_broadcast naming. Suffix churn (publish_broadcast → publish, etc.) is intentionally out of scope here — it should be a separate crate-wide pass. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #1378.
Ports the public-API renames from #1358 without the new state model. The existing OriginNode tree, web_async::spawn cleanup, and tokio mpsc fan-out stay untouched.
Renames
Rationale: every consume_xxx on OriginProducer was a one-liner shortcut for producer.consume().xxx(). Dropping them keeps the producer surface focused on publishing. The try_ and consume_ prefixes were redundant on OriginConsumer.
New BroadcastConsumer primitives
NOT in this PR
Test plan
🤖 Generated with Claude Code