mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-09 08:27:32 -04:00
Apply suggestions from code review
Co-authored-by: Damir Jelić <poljar@termina.org.uk>
This commit is contained in:
@@ -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<StoreCacheGuard<'_>> {
|
||||
// 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
|
||||
|
||||
Reference in New Issue
Block a user