diff options
| author | tv <tv@krebsco.de> | 2026-11-07 22:35:09 +0100 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-07 22:35:09 +0100 |
| commit | 13cba9b0be736433d8ac44c0ef046cb001918a07 (patch) | |
| tree | 09272f50d6d27cab6200a33fcdc7abb9e552e46c /src/swarm/peer/forget.rs | |
| parent | ec70060ae5fa665953741da921e28031b56bc5e0 (diff) | |
store: keys_at tells no map from an empty one
registry::exists counted any value at _continuum/users as a registry;
keys_at answers None where there is no map, and its users (records,
members, forget records, remakes) say what they make of it.
Auth plan M1 (fix).
Diffstat (limited to 'src/swarm/peer/forget.rs')
| -rw-r--r-- | src/swarm/peer/forget.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/swarm/peer/forget.rs b/src/swarm/peer/forget.rs index ce064a2..a1676b5 100644 --- a/src/swarm/peer/forget.rs +++ b/src/swarm/peer/forget.rs @@ -32,7 +32,10 @@ pub(crate) fn affects_forget_records(path: &[String]) -> bool { } fn forgotten_peers(doc: &Document) -> Vec<String> { - store::keys_at(doc, &forgotten_dir()).unwrap_or_default() + store::keys_at(doc, &forgotten_dir()) + .ok() + .flatten() + .unwrap_or_default() } /// The forget records this node acted on: peer → the record as it read then. |
