From 077c1a997928e0210629cc2ff66e85cd812814ba Mon Sep 17 00:00:00 2001 From: Christian Ebner Date: Mon, 15 Jul 2024 12:15:39 +0200 Subject: [PATCH] datastore: data blob: fix typos in comments Signed-off-by: Christian Ebner --- pbs-datastore/src/data_blob.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pbs-datastore/src/data_blob.rs b/pbs-datastore/src/data_blob.rs index e3039354e..a7a55fb70 100644 --- a/pbs-datastore/src/data_blob.rs +++ b/pbs-datastore/src/data_blob.rs @@ -30,7 +30,7 @@ pub struct ChunkInfo { /// ".didx"). /// pub struct DataBlob { - raw_data: Vec, // tagged, compressed, encryped data + raw_data: Vec, // tagged, compressed, encrypted data } impl DataBlob { @@ -212,7 +212,7 @@ impl DataBlob { let data_start = std::mem::size_of::(); let mut reader = &self.raw_data[data_start..]; let data = zstd::stream::decode_all(&mut reader)?; - // zstd::block::decompress is abou 10% slower + // zstd::block::decompress is about 10% slower // let data = zstd::block::decompress(&self.raw_data[data_start..], MAX_BLOB_SIZE)?; if let Some(digest) = digest { Self::verify_digest(&data, None, digest)?; @@ -472,7 +472,7 @@ impl DataBlob { /// Builder for chunk DataBlobs /// /// Main purpose is to centralize digest computation. Digest -/// computation differ for encryped chunk, and this interface ensures that +/// computation differ for encrypted chunk, and this interface ensures that /// we always compute the correct one. pub struct DataChunkBuilder<'a, 'b> { config: Option<&'b CryptConfig>,