diff options
| author | tv <tv@krebsco.de> | 2026-11-29 03:25:51 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-29 03:25:51 +0000 |
| commit | 7410954e730a21736b623d9a53f66d646dccff2e (patch) | |
| tree | 609c03a9bb11b88bfef10886f2e4103d0d596b62 /src/swarm/bootstrap.rs | |
| parent | e63d30c2581033a85489b10c3f5b252fdbb5049e (diff) | |
swarm: the member registry is read of any view, not of an Automerge document
Diffstat (limited to 'src/swarm/bootstrap.rs')
| -rw-r--r-- | src/swarm/bootstrap.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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<String> { } /// The swarm ID the document names, if any. -fn read_swarm_id(doc: &Document) -> Option<String> { +fn read_swarm_id(doc: &(impl crate::document::view::Read + ?Sized)) -> Option<String> { match view::read_path(doc, &swarm_id_path()) { Ok(Some(JsonValue::String(id))) if !id.is_empty() => Some(id), _ => None, |
