Skip to content

Commit

Permalink
Endpoint::immutable now returns a Result
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidSouther authored and ford-at-aws committed Nov 29, 2022
1 parent 0d7455c commit 4409fc9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions rust_dev_preview/dynamodb/src/bin/list-tables-local.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
// snippet-start:[dynamodb.rust.list-tables-local]
use aws_sdk_dynamodb::{Client, Endpoint, Error};
use dynamodb_code_examples::{make_config, scenario::list::list_tables, Opt};
use http::Uri;
use structopt::StructOpt;

/// Lists your tables in DynamoDB local.
Expand All @@ -16,7 +15,7 @@ async fn main() -> Result<(), Error> {
let dynamodb_local_config = aws_sdk_dynamodb::config::Builder::from(&config)
.endpoint_resolver(
// 8000 is the default dynamodb port
Endpoint::immutable(Uri::from_static("http://localhost:8000")),
Endpoint::immutable("http://localhost:8000").expect("Invalid endpoint"),
)
.build();

Expand Down

0 comments on commit 4409fc9

Please sign in to comment.