Skip to content

Commit 269cd7d

Browse files
committed
Removed debugging code
1 parent 4f9688f commit 269cd7d

File tree

4 files changed

+4
-18
lines changed

4 files changed

+4
-18
lines changed

src/crypto/attrs/normalized_protected_attributes.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ use super::flattened_protected_attributes::{
44
use cipherstash_client::encryption::Plaintext;
55
use std::collections::HashMap;
66

7-
// FIXME: Remove this (only used for debugging)
8-
#[derive(Debug)]
97
pub(crate) struct NormalizedProtectedAttributes {
108
values: HashMap<NormalizedKey, NormalizedValue>,
119
prefix: Option<String>,

src/crypto/sealed.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ use super::{attrs::NormalizedProtectedAttributes, SealError, Unsealed};
1818
/// Wrapped to indicate that the value is encrypted
1919
pub struct SealedTableEntry(pub(super) TableEntry);
2020

21-
// FIXME: Remove this (only used for debugging)
22-
#[derive(Debug)]
2321
pub struct UnsealSpec<'a> {
2422
pub(crate) protected_attributes: Cow<'a, [Cow<'a, str>]>,
2523

src/encrypted_table/mod.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -318,8 +318,6 @@ impl<D> EncryptedTable<D> {
318318
T: Decryptable + Identifiable,
319319
{
320320
let uspec = UnsealSpec::new_for_decryptable::<T>();
321-
println!("USPEC: {:?}", uspec);
322-
323321
let item = self.unseal(item, uspec).await?;
324322

325323
Ok(item.into_value()?)
@@ -454,8 +452,6 @@ impl EncryptedTable<Dynamo> {
454452
let PrimaryKeyParts { pk, sk } =
455453
self.encrypt_primary_key_parts(PreparedPrimaryKey::new::<T>(k))?;
456454

457-
println!("GET: PK: {}, SK: {}", pk, sk);
458-
459455
let result = self
460456
.db
461457
.get_item()
@@ -466,8 +462,6 @@ impl EncryptedTable<Dynamo> {
466462
.await
467463
.map_err(|e| GetError::Aws(format!("{e:?}")))?;
468464

469-
println!("RESULT: {:?}", result);
470-
471465
if let Some(item) = result.item {
472466
Ok(Some(self.decrypt(item).await?))
473467
} else {

src/encrypted_table/query.rs

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -75,15 +75,11 @@ impl PreparedQuery {
7575
.key_condition_expression("term = :term")
7676
.expression_attribute_values(":term", term);
7777

78-
let result = query.send().await?;
79-
80-
dbg!(&result);
81-
82-
let items = result
78+
query
79+
.send()
80+
.await?
8381
.items
84-
.ok_or_else(|| QueryError::Other("Expected items entry on aws response".into()))?;
85-
86-
Ok(items)
82+
.ok_or_else(|| QueryError::Other("Expected items entry on aws response".into()))
8783
}
8884
}
8985

0 commit comments

Comments
 (0)