From 694347ad456766004e2792c4b4cda865a8a40386 Mon Sep 17 00:00:00 2001 From: tv Date: Sat, 31 Oct 2026 13:25:11 +0100 Subject: rename AutoMerge to Document --- src/swarm/peer/forget.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/swarm/peer') diff --git a/src/swarm/peer/forget.rs b/src/swarm/peer/forget.rs index 6386e3e..3a97677 100644 --- a/src/swarm/peer/forget.rs +++ b/src/swarm/peer/forget.rs @@ -5,11 +5,11 @@ use std::collections::HashMap; use std::time::Duration; -use automerge::AutoCommit; use serde_json::Value as JsonValue; use tokio::time::Instant; use tracing::{info, warn}; +use crate::document::Document; use crate::document::meta; use crate::document::store::{self, StoreError}; use crate::state::{AppState, Standing}; @@ -24,7 +24,7 @@ pub(crate) fn forgotten_path(pk: &str) -> Vec { path } -fn forgotten_peers(doc: &AutoCommit) -> Vec { +fn forgotten_peers(doc: &Document) -> Vec { store::keys_at(doc, &forgotten_dir()).unwrap_or_default() } -- cgit v1.3.1