mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-14 11:05:32 -04:00
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:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user