Page MenuHomePhabricator

D8878.diff
No OneTemporary

D8878.diff

diff --git a/services/identity/src/database.rs b/services/identity/src/database.rs
--- a/services/identity/src/database.rs
+++ b/services/identity/src/database.rs
@@ -472,9 +472,19 @@
.table_name(NAME)
.key_condition_expression(format!("{} = :pk", PARTITION_KEY))
.expression_attribute_values(":pk", AttributeValue::S(partition_key))
+ .return_consumed_capacity(
+ aws_sdk_dynamodb::model::ReturnConsumedCapacity::Total,
+ )
.send()
.await
.map_err(|e| Error::AwsSdk(e.into()))
+ .map(|response| {
+ let capacity_units = response
+ .consumed_capacity()
+ .and_then(|it| it.capacity_units());
+ debug!("OTK read consumed capacity: {:?}", capacity_units);
+ response
+ })
}
pub async fn set_prekey(

File Metadata

Mime Type
text/plain
Expires
Tue, Nov 26, 2:44 PM (15 h, 10 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2584803
Default Alt Text
D8878.diff (814 B)

Event Timeline