FFI Bindings: Review, remove runtime block_on, use await

Co-authored-by: Ivan Enderlin <ivan@mnt.io>
Signed-off-by: Valere <bill.carson@valrsoft.com>
This commit is contained in:
Valere
2024-05-27 12:49:59 +02:00
committed by GitHub
parent 8cf52972bb
commit a042b3d409

View File

@@ -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
}
}