aboutsummaryrefslogtreecommitdiffstats
path: root/src/swarm/peer/forget.rs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-10-31 13:25:11 +0100
committertv <tv@krebsco.de>2026-10-31 13:25:11 +0100
commitbaf9498c69340da18001c7ca2c223ed45fddc249 (patch)
tree54074c4120653442ab00368d94be5b33c6aefe10 /src/swarm/peer/forget.rs
parent2c4a60b91bf60b0d87a862641a6016b1f7a251ec (diff)
rename AutoMerge to Document
Diffstat (limited to 'src/swarm/peer/forget.rs')
-rw-r--r--src/swarm/peer/forget.rs4
1 files changed, 2 insertions, 2 deletions
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<String> {
path
}
-fn forgotten_peers(doc: &AutoCommit) -> Vec<String> {
+fn forgotten_peers(doc: &Document) -> Vec<String> {
store::keys_at(doc, &forgotten_dir()).unwrap_or_default()
}