Skip to content

feat(relay): configure fallback cache retention - #2702

Merged
kixelated merged 5 commits into
devfrom
codex/cache-latency-default-dev
Aug 6, 2026
Merged

feat(relay): configure fallback cache retention#2702
kixelated merged 5 commits into
devfrom
codex/cache-latency-default-dev

Conversation

@kixelated

Copy link
Copy Markdown
Collaborator

Summary

  • Move the relay cache fallback-retention option off the patch release and onto dev.
  • Restore Cache::latency_default and the cache-latency-default configuration only after the main-targeted compatibility rollback.
  • Mark Cache as #[non_exhaustive] so later defaultable cache fields remain additive.

This PR is stacked on #2672. Its merge commit includes the release compatibility rollback so a later merge from main cannot silently remove the dev-only API again.

Public API changes

  • Breaking: moq_relay::Cache becomes #[non_exhaustive], so external struct literals must switch to library construction before this release.
  • Added: Cache::latency_default configures the retention window for peers whose protocol carries no publisher retention value.

Test plan

  • nix develop --command just fix
  • nix develop --command just check

Cross-package sync: no wire format changed. The relay configuration docs are updated in this PR.

(Written by GPT-5)

@kixelated kixelated mentioned this pull request Aug 6, 2026
@kixelated
kixelated marked this pull request as ready for review August 6, 2026 17:13
@kixelated
kixelated merged commit 74f7d64 into dev Aug 6, 2026
2 checks passed
@kixelated
kixelated deleted the codex/cache-latency-default-dev branch August 6, 2026 17:13
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