Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3367392
D8878.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
814 B
Referenced Files
None
Subscribers
None
D8878.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
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)
Attached To
Mode
D8878: [Identity] Show consumed capacity when running query
Attached
Detach File
Event Timeline
Log In to Comment