@@ -281,7 +281,7 @@ impl<D> EncryptedTable<D> {
281281 {
282282 // TODO: Temporary obvs
283283 let dataset_id = Uuid :: parse_str ( "93e10481-2692-4d65-a619-37e36a496e64" ) . unwrap ( ) ;
284- let scoped_cipher = ScopedCipherWithCreds :: init ( self . cipher . clone ( ) , dataset_id) . await ? ;
284+ let scoped_cipher = ScopedCipherWithCreds :: init ( self . cipher . clone ( ) , dataset_id) . await . unwrap ( ) ;
285285
286286 decrypt_all ( & scoped_cipher, items) . await
287287 }
@@ -292,7 +292,7 @@ impl<D> EncryptedTable<D> {
292292 ) -> Result < DynamoRecordPatch , DeleteError > {
293293 // TODO: Temporary obvs
294294 let dataset_id = Uuid :: parse_str ( "93e10481-2692-4d65-a619-37e36a496e64" ) . unwrap ( ) ;
295- let scoped_cipher = ScopedCipherWithCreds :: init ( self . cipher . clone ( ) , dataset_id) . await ;
295+ let scoped_cipher = ScopedCipherWithCreds :: init ( self . cipher . clone ( ) , dataset_id) . await . unwrap ( ) ;
296296
297297 let PrimaryKeyParts { pk, sk } = encrypt_primary_key_parts ( & scoped_cipher, delete. primary_key ) ?;
298298
@@ -330,7 +330,7 @@ impl<D> EncryptedTable<D> {
330330
331331 // TODO: Temporary obvs
332332 let dataset_id = Uuid :: parse_str ( "93e10481-2692-4d65-a619-37e36a496e64" ) . unwrap ( ) ;
333- let indexable_cipher = ScopedCipherWithCreds :: init ( self . cipher . clone ( ) , dataset_id) . await ;
333+ let indexable_cipher = ScopedCipherWithCreds :: init ( self . cipher . clone ( ) , dataset_id) . await . unwrap ( ) ;
334334
335335 let PreparedRecord {
336336 protected_attributes,
@@ -405,7 +405,7 @@ impl EncryptedTable<Dynamo> {
405405 {
406406 // TODO: Temporary obvs
407407 let dataset_id = Uuid :: parse_str ( "93e10481-2692-4d65-a619-37e36a496e64" ) . unwrap ( ) ;
408- let scoped_cipher = ScopedCipherWithCreds :: init ( self . cipher . clone ( ) , dataset_id) . await ;
408+ let scoped_cipher = ScopedCipherWithCreds :: init ( self . cipher . clone ( ) , dataset_id) . await . unwrap ( ) ;
409409
410410 let PrimaryKeyParts { pk, sk } =
411411 encrypt_primary_key_parts ( & scoped_cipher, PreparedPrimaryKey :: new :: < T > ( k) ) ?;
0 commit comments