Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

linera-views::dynamodb: box aws-sdk-dynamodb futures #1860

Merged
merged 1 commit into from
Apr 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion linera-views/src/dynamo_db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ use aws_sdk_dynamodb::{
Client,
};
use aws_smithy_types::error::operation::BuildError;
use futures::future::join_all;
use futures::future::{join_all, FutureExt as _};
use linera_base::ensure;
use thiserror::Error;
#[cfg(with_testing)]
Expand Down Expand Up @@ -539,6 +539,7 @@ impl DynamoDbStoreInternal {
.expression_attribute_values(":prefix", AttributeValue::B(Blob::new(key_prefix)))
.set_exclusive_start_key(start_key_map)
.send()
.boxed()
.await?;
Ok(response)
}
Expand All @@ -554,6 +555,7 @@ impl DynamoDbStoreInternal {
.table_name(&self.namespace)
.set_key(Some(key_db))
.send()
.boxed()
.await?;

match response.item {
Expand All @@ -577,6 +579,7 @@ impl DynamoDbStoreInternal {
.set_key(Some(key_db))
.projection_expression(PARTITION_ATTRIBUTE)
.send()
.boxed()
.await?;

Ok(response.item.is_some())
Expand Down
Loading