From 7410954e730a21736b623d9a53f66d646dccff2e Mon Sep 17 00:00:00 2001 From: tv Date: Sun, 29 Nov 2026 03:25:51 +0000 Subject: swarm: the member registry is read of any view, not of an Automerge document --- src/swarm/bootstrap.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/swarm/bootstrap.rs') diff --git a/src/swarm/bootstrap.rs b/src/swarm/bootstrap.rs index 27b5e6b..7626d53 100644 --- a/src/swarm/bootstrap.rs +++ b/src/swarm/bootstrap.rs @@ -246,7 +246,7 @@ fn swarm_id_path() -> Vec { } /// The swarm ID the document names, if any. -fn read_swarm_id(doc: &Document) -> Option { +fn read_swarm_id(doc: &(impl crate::document::view::Read + ?Sized)) -> Option { match view::read_path(doc, &swarm_id_path()) { Ok(Some(JsonValue::String(id))) if !id.is_empty() => Some(id), _ => None, -- cgit v1.3.1