From a042b3d409fe415f766bb071e22e9dc438c5d3d0 Mon Sep 17 00:00:00 2001 From: Valere Date: Mon, 27 May 2024 12:49:59 +0200 Subject: [PATCH] FFI Bindings: Review, remove runtime block_on, use await Co-authored-by: Ivan Enderlin Signed-off-by: Valere --- bindings/matrix-sdk-crypto-ffi/src/machine.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bindings/matrix-sdk-crypto-ffi/src/machine.rs b/bindings/matrix-sdk-crypto-ffi/src/machine.rs index a0cfdd757..793ae5f9f 100644 --- a/bindings/matrix-sdk-crypto-ffi/src/machine.rs +++ b/bindings/matrix-sdk-crypto-ffi/src/machine.rs @@ -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 } }