Skip to content

Commit 404ce56

Browse files
committed
fixup! Split out the receive_sync_changes method into a helper
1 parent 09ba820 commit 404ce56

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/matrix-sdk-crypto/src/machine.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1149,7 +1149,7 @@ impl OlmMachine {
11491149
&self,
11501150
sync_changes: EncryptionSyncChanges<'_>,
11511151
) -> OlmResult<(Vec<Raw<AnyToDeviceEvent>>, Vec<RoomKeyInfo>)> {
1152-
let (events, changes) = self.receive_sync_changes_helper(sync_changes).await?;
1152+
let (events, changes) = self.preprocess_sync_changes(sync_changes).await?;
11531153

11541154
// Technically save_changes also does the same work, so if it's slow we could
11551155
// refactor this to do it only once.
@@ -1161,7 +1161,7 @@ impl OlmMachine {
11611161
Ok((events, room_key_updates))
11621162
}
11631163

1164-
pub(crate) async fn receive_sync_changes_helper(
1164+
pub(crate) async fn preprocess_sync_changes(
11651165
&self,
11661166
sync_changes: EncryptionSyncChanges<'_>,
11671167
) -> OlmResult<(Vec<Raw<AnyToDeviceEvent>>, Changes)> {

0 commit comments

Comments
 (0)