refactor(route): enforce global SFU admission

This commit is contained in:
AAA committed 2026-08-23 00:50:11 +08:00
1 parent 56ae363838
commit 524f012739
19 files changed
+519 -119

No files matched your search

+2 -2
View File
@@ -551,7 +551,7 @@ function inspectSfuPublication(pages: readonly PageObservation[]) {
};
}
if (sfuViewers.length > 2 || publicationOwners.length !== 1) {
if (publicationOwners.length !== 1) {
return { observed: true, rootCount: sfuViewers.length, coherent: false };
}
const host = publicationOwners[0]!;
@@ -872,7 +872,7 @@ export function buildRunChecks(
passed: summary.sfuPublicationCoherent,
actual: summary.sfuRootCount,
expected:
"1-2 active SFU roots, one Host publication, and one active revision across all participants",
"admitted SFU subscriptions, one Host publication, and one active revision across all participants",
}
: {
name: "no-orphan-sfu-publication",