diff options
Diffstat (limited to 'src/swarm/peer/forget.rs')
| -rw-r--r-- | src/swarm/peer/forget.rs | 4 |
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() } |
