doc: add docs for get_unknown_note_ids

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2024-07-31 14:21:47 -07:00
parent d44c4c2f9c
commit 20f0aed2ed

View File

@@ -269,6 +269,14 @@ impl<'a> UnknownId<'a> {
}
}
/// Look for missing notes in various parts of notes that we see:
///
/// - pubkeys and notes mentioned inside the note
/// - notes being replied to
///
/// We return all of this in a HashSet so that we can fetch these from
/// remote relays.
///
fn get_unknown_note_ids<'a>(
ndb: &Ndb,
_cached_note: &CachedNote,