127 errors left

This commit is contained in:
Timo Kösters
2022-10-05 18:36:12 +02:00
committed by Nyaaori
parent cff52d7ebb
commit 44fe6d1554
65 changed files with 809 additions and 556 deletions

View File

@@ -448,14 +448,6 @@ impl Service {
Ok(())
}
#[tracing::instrument(skip(keys))]
fn calculate_hash(keys: &[&[u8]]) -> Vec<u8> {
// We only hash the pdu's event ids, not the whole pdu
let bytes = keys.join(&0xff);
let hash = digest::digest(&digest::SHA256, &bytes);
hash.as_ref().to_owned()
}
/// Cleanup event data
/// Used for instance after we remove an appservice registration
///