From 3a49c9afdfa3c3d341623804b403fd97e0de895b Mon Sep 17 00:00:00 2001 From: Ivan Enderlin Date: Tue, 29 Oct 2024 17:02:51 +0100 Subject: [PATCH] chore: Add an empty line between struct fields. --- crates/matrix-sdk-base/src/client.rs | 4 ++++ crates/matrix-sdk/src/client/mod.rs | 9 +++++++++ 2 files changed, 13 insertions(+) diff --git a/crates/matrix-sdk-base/src/client.rs b/crates/matrix-sdk-base/src/client.rs index 1033345a80b..d7ff49ea7f4 100644 --- a/crates/matrix-sdk-base/src/client.rs +++ b/crates/matrix-sdk-base/src/client.rs @@ -93,19 +93,23 @@ use crate::{ pub struct BaseClient { /// Database pub(crate) store: Store, + /// The store used by the event cache. event_cache_store: Arc, + /// The store used for encryption. /// /// This field is only meant to be used for `OlmMachine` initialization. /// All operations on it happen inside the `OlmMachine`. #[cfg(feature = "e2e-encryption")] crypto_store: Arc, + /// The olm-machine that is created once the /// [`SessionMeta`][crate::session::SessionMeta] is set via /// [`BaseClient::set_session_meta`] #[cfg(feature = "e2e-encryption")] olm_machine: Arc>>, + /// Observable of when a user is ignored/unignored. pub(crate) ignore_user_list_changes: SharedObservable>, diff --git a/crates/matrix-sdk/src/client/mod.rs b/crates/matrix-sdk/src/client/mod.rs index 7066fcba545..20268e75d39 100644 --- a/crates/matrix-sdk/src/client/mod.rs +++ b/crates/matrix-sdk/src/client/mod.rs @@ -160,6 +160,7 @@ pub(crate) struct ClientLocks { /// Look at the [`Account::mark_as_dm()`] method for a more detailed /// explanation. pub(crate) mark_as_dm_lock: Mutex<()>, + /// Lock ensuring that only a single secret store is getting opened at the /// same time. /// @@ -167,6 +168,7 @@ pub(crate) struct ClientLocks { /// default secret storage keys. #[cfg(feature = "e2e-encryption")] pub(crate) open_secret_store_lock: Mutex<()>, + /// Lock ensuring that we're only storing a single secret at a time. /// /// Take a look at the [`SecretStore::put_secret`] method for a more @@ -175,23 +177,29 @@ pub(crate) struct ClientLocks { /// [`SecretStore::put_secret`]: crate::encryption::secret_storage::SecretStore::put_secret #[cfg(feature = "e2e-encryption")] pub(crate) store_secret_lock: Mutex<()>, + /// Lock ensuring that only one method at a time might modify our backup. #[cfg(feature = "e2e-encryption")] pub(crate) backup_modify_lock: Mutex<()>, + /// Lock ensuring that we're going to attempt to upload backups for a single /// requester. #[cfg(feature = "e2e-encryption")] pub(crate) backup_upload_lock: Mutex<()>, + /// Handler making sure we only have one group session sharing request in /// flight per room. #[cfg(feature = "e2e-encryption")] pub(crate) group_session_deduplicated_handler: DeduplicatingHandler, + /// Lock making sure we're only doing one key claim request at a time. #[cfg(feature = "e2e-encryption")] pub(crate) key_claim_lock: Mutex<()>, + /// Handler to ensure that only one members request is running at a time, /// given a room. pub(crate) members_request_deduplicated_handler: DeduplicatingHandler, + /// Handler to ensure that only one encryption state request is running at a /// time, given a room. pub(crate) encryption_state_deduplicated_handler: DeduplicatingHandler, @@ -203,6 +211,7 @@ pub(crate) struct ClientLocks { #[cfg(feature = "e2e-encryption")] pub(crate) cross_process_crypto_store_lock: OnceCell>, + /// Latest "generation" of data known by the crypto store. /// /// This is a counter that only increments, set in the database (and can