Skip to content

Commit

Permalink
FFI Bindings: Review, remove runtime block_on, use await
Browse files Browse the repository at this point in the history
Co-authored-by: Ivan Enderlin <ivan@mnt.io>
Signed-off-by: Valere <bill.carson@valrsoft.com>
  • Loading branch information
BillCarsonFr and Hywan authored May 27, 2024
1 parent 8cf5297 commit a042b3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bindings/matrix-sdk-crypto-ffi/src/machine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1543,7 +1543,7 @@ impl OlmMachine {
/// If the machine is used by another process, the cache must be invalidating when the
/// main process is resumed.
pub async fn clear_crypto_cache(&self) {
self.runtime.block_on(self.inner.clear_crypto_cache())
self.inner.clear_crypto_cache().await
}
}

Expand Down

0 comments on commit a042b3d

Please sign in to comment.