improvement: smaller cache, better prev event fetching

This commit is contained in:
Timo Kösters
2021-08-11 10:24:16 +02:00
parent 8a5dbef474
commit 096e0971f1
2 changed files with 3 additions and 5 deletions

View File

@@ -1022,7 +1022,7 @@ pub fn handle_incoming_pdu<'a>(
return Ok(None);
}
// Load missing prev events first
// 9. Fetch any missing prev events doing all checks listed here starting at 1. These are timeline events
fetch_and_handle_events(
db,
origin,
@@ -1033,8 +1033,6 @@ pub fn handle_incoming_pdu<'a>(
)
.await;
// TODO: 9. fetch any missing prev events doing all checks listed here starting at 1. These are timeline events
// 10. Fetch missing state and auth chain events by calling /state_ids at backwards extremities
// doing all the checks in this list starting at 1. These are not timeline events.