Fixing the incoming events algorithm (review with time)

This commit is contained in:
Devin Ragotzy 2021-01-16 16:37:20 -05:00
parent db0aee3318
commit 94da569119
2 changed files with 138 additions and 101 deletions

View file

@ -150,7 +150,7 @@ impl Rooms {
}
}
/// Returns the last state hash key added to the db.
/// Returns the state hash for this pdu.
pub fn pdu_state_hash(&self, pdu_id: &[u8]) -> Result<Option<StateHashId>> {
Ok(self.pduid_statehash.get(pdu_id)?)
}