From 7f31a5bca06dccdd4edaed6699bc6e6f479a2b27 Mon Sep 17 00:00:00 2001 From: tv Date: Mon, 16 Nov 2026 19:30:05 +0000 Subject: store: a fold names itself A swarm holding a store names its fold in its policy, `{"version": 2, "store": ""}`: the fold's name is a constant of the fold, `federation` for the federation and `test` for the fold made for the store's tests. --- src/federation/store/testfold.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/federation/store/testfold.rs') diff --git a/src/federation/store/testfold.rs b/src/federation/store/testfold.rs index baaba55..bf23321 100644 --- a/src/federation/store/testfold.rs +++ b/src/federation/store/testfold.rs @@ -289,6 +289,8 @@ pub(crate) struct TestFold; impl Fold for TestFold { type State = State; + const NAME: &'static str = "test"; + const LARGEST: usize = 64 * 1024; fn dependencies(event: &[u8]) -> Option> { -- cgit v1.3.1