aboutsummaryrefslogtreecommitdiffstats
path: root/src/document/events.rs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-16 19:35:23 +0000
committertv <tv@krebsco.de>2026-11-16 21:25:02 +0100
commit69d2aace79eb61d800afa3a0779cfe3a9dfe1039 (patch)
treea768fdc2d1da949b8fb17824866623bb45bb37cc /src/document/events.rs
parent969767fa5270f90fb3b289177d83d6baab1cbdc2 (diff)
access: the policy of a swarm holding a store
`{"version": 2, "store": "<fold>"}` at the policy's place is a swarm holding a store of that fold (`docs/store.md`, What the document holds). Behind the `federation` feature, a node reads it as `Policy::Store` where the fold is one it has (`federation`) and nothing else is written there: changes judged, and signed, as required; not strict. Its `store` reads so only where it is a string, as `values` of a strict policy. A swarm holds a store from its genesis change only, so `--bootstrap-policy` takes none. Without the feature, a policy of version 2 stays one the node doesn't know.
Diffstat (limited to 'src/document/events.rs')
-rw-r--r--src/document/events.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/document/events.rs b/src/document/events.rs
index 873d3e3..7b0fe5e 100644
--- a/src/document/events.rs
+++ b/src/document/events.rs
@@ -9,8 +9,8 @@
//! and it has no message.
#![allow(dead_code)]
-use automerge::transaction::CommitOptions;
use automerge::legacy::OpType;
+use automerge::transaction::CommitOptions;
use automerge::{ObjId, ObjType, ScalarValue, Value};
use serde_json::Value as JsonValue;