Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F33100740
D8878.1768471871.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
814 B
Referenced Files
None
Subscribers
None
D8878.1768471871.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Thu, Jan 15, 10:11 AM (10 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5930130
Default Alt Text
D8878.1768471871.diff (814 B)
Attached To
Mode
D8878: [Identity] Show consumed capacity when running query
Attached
Detach File
Event Timeline
Log In to Comment