syncfeed: drop the redundant SCOPED_TABLES alias, refresh comments
This commit is contained in:
1 parent
a38bb6ccec
commit
7c04a97892
1 file changed
+3
-3
+3
-3
@@ -25,10 +25,10 @@ from uuid import UUID
|
||||
import msgspec
|
||||
|
||||
# Tables mirrored by satellites, all filtered to the subscriber's rp-id
|
||||
# (reset tokens, sync tokens, OIDC data and domain config are
|
||||
# scope set (reset tokens, link tables, OIDC data and domain config are
|
||||
# instance-local and never replicated).
|
||||
TABLES = ("credentials", "sessions")
|
||||
SCOPED_TABLES = TABLES
|
||||
|
||||
|
||||
# The user graph is never published; upserts of these tables drive the
|
||||
# eager re-push of affected session contexts instead.
|
||||
@@ -102,7 +102,7 @@ def emit(table: str, key: str, obj) -> None:
|
||||
for queue, scope in list(_subscribers.items()):
|
||||
if (
|
||||
scope is not None
|
||||
and table in SCOPED_TABLES
|
||||
and table in TABLES
|
||||
and fields is not None
|
||||
and fields.get("rp_id") not in scope
|
||||
):
|
||||
|
||||
Reference in new issue
Block a user