From c18ac12ce965ccf2bdf355bcdfbd4e7d38021ec9 Mon Sep 17 00:00:00 2001 From: Benjamin Bouvier Date: Thu, 28 Sep 2023 16:16:28 +0200 Subject: [PATCH] Apply suggestions from code review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Damir Jelić --- crates/matrix-sdk-crypto/src/store/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/matrix-sdk-crypto/src/store/mod.rs b/crates/matrix-sdk-crypto/src/store/mod.rs index 345e69e3c..1c71b49b2 100644 --- a/crates/matrix-sdk-crypto/src/store/mod.rs +++ b/crates/matrix-sdk-crypto/src/store/mod.rs @@ -115,7 +115,7 @@ struct StoreCache { struct StoreCacheGuard<'a> { cache: &'a StoreCache, - // TODO(bnjbvr, #2624) add cross-process lock guard here. + // TODO: (bnjbvr, #2624) add cross-process lock guard here. } impl<'a> Deref for StoreCacheGuard<'a> { @@ -563,7 +563,7 @@ impl Store { } async fn cache(&self) -> Result> { - // TODO(bnjbvr, #2624) If configured with a cross-process lock: + // TODO: (bnjbvr, #2624) If configured with a cross-process lock: // - try to take the lock, // - if acquired, look if another process touched the underlying storage, // - if yes, reload everything; if no, return current cache