From 126e8f1bd95daa6157a26243bfc2aa6dac34a186 Mon Sep 17 00:00:00 2001 From: Denis Kasak Date: Thu, 19 May 2022 16:05:08 +0200 Subject: [PATCH] docs: Unify references to "cryptostore" as "crypto store" --- crates/matrix-sdk-crypto-ffi/src/machine.rs | 2 +- crates/matrix-sdk-crypto/src/backups/mod.rs | 2 +- crates/matrix-sdk-crypto/src/identities/device.rs | 4 ++-- crates/matrix-sdk-sled/src/cryptostore.rs | 4 ++-- crates/matrix-sdk/src/error.rs | 6 +++--- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/crates/matrix-sdk-crypto-ffi/src/machine.rs b/crates/matrix-sdk-crypto-ffi/src/machine.rs index 65bf6f51e..b895bb9c6 100644 --- a/crates/matrix-sdk-crypto-ffi/src/machine.rs +++ b/crates/matrix-sdk-crypto-ffi/src/machine.rs @@ -1330,7 +1330,7 @@ impl OlmMachine { Ok(self.runtime.block_on(self.inner.backup_machine().room_key_counts())?.into()) } - /// Store the recovery key in the cryptostore. + /// Store the recovery key in the crypto store. /// /// This is useful if the client wants to support gossiping of the backup /// key. diff --git a/crates/matrix-sdk-crypto/src/backups/mod.rs b/crates/matrix-sdk-crypto/src/backups/mod.rs index 15494822a..10ebca631 100644 --- a/crates/matrix-sdk-crypto/src/backups/mod.rs +++ b/crates/matrix-sdk-crypto/src/backups/mod.rs @@ -220,7 +220,7 @@ impl BackupMachine { Ok(()) } - /// Store the recovery key in the cryptostore. + /// Store the recovery key in the crypto store. /// /// This is useful if the client wants to support gossiping of the backup /// key. diff --git a/crates/matrix-sdk-crypto/src/identities/device.rs b/crates/matrix-sdk-crypto/src/identities/device.rs index 58d15be65..96fa116f7 100644 --- a/crates/matrix-sdk-crypto/src/identities/device.rs +++ b/crates/matrix-sdk-crypto/src/identities/device.rs @@ -456,8 +456,8 @@ impl ReadOnlyDevice { /// Set the trust state of the device to the given state. /// - /// Note: This should only done in the cryptostore where the trust state can - /// be stored. + /// Note: This should only done in the crypto store where the trust state + /// can be stored. pub(crate) fn set_trust_state(&self, state: LocalTrust) { self.trust_state.store(state, Ordering::Relaxed) } diff --git a/crates/matrix-sdk-sled/src/cryptostore.rs b/crates/matrix-sdk-sled/src/cryptostore.rs index 646a5dc57..b9119240c 100644 --- a/crates/matrix-sdk-sled/src/cryptostore.rs +++ b/crates/matrix-sdk-sled/src/cryptostore.rs @@ -205,7 +205,7 @@ impl std::fmt::Debug for SledStore { } impl SledStore { - /// Open the sled based cryptostore at the given path using the given + /// Open the sled-based crypto store at the given path using the given /// passphrase to encrypt private data. pub fn open_with_passphrase( path: impl AsRef, @@ -224,7 +224,7 @@ impl SledStore { SledStore::open_helper(db, Some(path), store_cipher) } - /// Create a sled based cryptostore using the given sled database. + /// Create a sled-based crypto store using the given sled database. /// The given passphrase will be used to encrypt private data. pub fn open_with_database( db: Db, diff --git a/crates/matrix-sdk/src/error.rs b/crates/matrix-sdk/src/error.rs index 5e1b678b9..4ddf286df 100644 --- a/crates/matrix-sdk/src/error.rs +++ b/crates/matrix-sdk/src/error.rs @@ -198,9 +198,9 @@ pub enum RoomKeyImportError { #[error(transparent)] SerdeJson(#[from] JsonError), - /// The cryptostore isn't yet open, logging in is required to open the - /// cryptostore. - #[error("The cryptostore hasn't been yet opened, can't import yet.")] + /// The crypto store isn't yet open. Logging in is required to open the + /// crypto store. + #[error("The crypto store hasn't been yet opened, can't import yet.")] StoreClosed, /// An IO error happened.