docs: Unify references to "cryptostore" as "crypto store"

This commit is contained in:
Denis Kasak
2022-05-19 16:05:08 +02:00
parent d1410fcded
commit 126e8f1bd9
5 changed files with 9 additions and 9 deletions

View File

@@ -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.

View File

@@ -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.

View File

@@ -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)
}

View File

@@ -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<Path>,
@@ -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,

View File

@@ -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.