diff options
Diffstat (limited to 'src/access/rules.rs')
| -rw-r--r-- | src/access/rules.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/access/rules.rs b/src/access/rules.rs index d1edfd5..9597774 100644 --- a/src/access/rules.rs +++ b/src/access/rules.rs @@ -171,7 +171,7 @@ pub(crate) fn judge_reading( // its genesis change, or not at all. #[cfg(feature = "federation")] match policy { - Policy::Store(fold) => return super::holding::judge(&at, change, fold), + Policy::Store(fold) => return super::holding::judge(&at, epoch, change, fold), _ if super::holding::turns_store(change.ops) => { return Err(Refusal::Rule( "a swarm holds a store from its genesis change only".to_owned(), @@ -565,7 +565,7 @@ fn shown(path: &Path) -> String { /// Whether remake `id`, coordinated by `node`, made `epoch`: as its snapshot's metadata /// says (`remake::snapshot`), at `at`. Never genesis. -fn made_the_epoch(at: &At<'_>, epoch: Epoch, id: &str, node: &str) -> bool { +pub(super) fn made_the_epoch(at: &At<'_>, epoch: Epoch, id: &str, node: &str) -> bool { if epoch.generation == 0 { return false; } @@ -584,7 +584,7 @@ fn made_the_epoch(at: &At<'_>, epoch: Epoch, id: &str, node: &str) -> bool { } /// The coordinator remake `id`'s proposal names, at `at`. -fn coordinator(at: &At<'_>, id: &str) -> Option<String> { +pub(super) fn coordinator(at: &At<'_>, id: &str) -> Option<String> { let proposal = store::read_path(at, &meta::path(&[meta::REMAKES, id, "proposal"])) .ok() .flatten()?; |
