From 00e88cd983766abec32b5a14a8cbf20932a27f3c Mon Sep 17 00:00:00 2001 From: tv Date: Mon, 30 Nov 2026 17:57:55 +0000 Subject: swarm: members read of a set's entries over the document's What a set hands the node to read was read in the document's place; it is read over it now (view::Listed): at a path, what the set's tree holds, else what the document does, and maps of both as one. A node on a set alone reads the same as before, its document being empty; one holding its store in both, to come, reads the members of both. --- src/api/login.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/api/login.rs') diff --git a/src/api/login.rs b/src/api/login.rs index a5bfde5..09c68df 100644 --- a/src/api/login.rs +++ b/src/api/login.rs @@ -116,7 +116,7 @@ pub(crate) async fn bearer( let verified = { let replica = state.doc.read().await; let entries = state.entries(); - let listed = crate::document::view::members_of(&entries, &replica.doc); + let listed = &crate::document::view::members_of(&entries, &replica.doc); let verified = token::verify(listed, &text, &swarm, now); #[cfg(feature = "federation")] let verified = @@ -562,7 +562,7 @@ async fn credentials_end( async fn refused_now(state: &AppState, who: &Credentials) -> Option { let replica = state.doc.read().await; let entries = state.entries(); - let listed = crate::document::view::members_of(&entries, &replica.doc); + let listed = &crate::document::view::members_of(&entries, &replica.doc); match who { Credentials::Token(claims) => token::still_taken(listed, claims).err().or_else(|| { state -- cgit v1.3.1