aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 8b56399..d4989ab 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -225,7 +225,16 @@ pub async fn run() -> Result<()> {
// or from the root.
#[cfg(feature = "federation")]
let set = match (&store, &args.store_document) {
- (Some(store), Some(path)) => Some(store.set(path, &files, args.store_keeps_forgotten)?),
+ (Some(store), Some(path)) => Some(
+ store.set(
+ path,
+ &files,
+ args.store_checkpoint
+ .as_deref()
+ .and_then(federation::store::Id::from_hex),
+ args.store_keeps_forgotten,
+ )?,
+ ),
_ => None,
};
#[cfg(feature = "federation")]