diff --git a/src/service/rooms/state/mod.rs b/src/service/rooms/state/mod.rs index 98424954..db15e0aa 100644 --- a/src/service/rooms/state/mod.rs +++ b/src/service/rooms/state/mod.rs @@ -262,7 +262,8 @@ pub async fn set_event_state( ) )] pub async fn append_to_state(&self, new_pdu: &PduEvent) -> Result { - const BUFSIZE: usize = size_of::(); + const KEY_LEN: usize = size_of::(); + const VAL_LEN: usize = size_of::(); let shorteventid = self .services @@ -277,7 +278,7 @@ pub async fn append_to_state(&self, new_pdu: &PduEvent) -> Result { if let Ok(p) = previous_shortstatehash { self.db .shorteventid_shortstatehash - .aput::(shorteventid, p); + .aput::(shorteventid, p); } match &new_pdu.state_key {