Skip to content

Commit

Permalink
fix: README
Browse files Browse the repository at this point in the history
  • Loading branch information
mythrnr committed Jun 7, 2024
1 parent 22ae7b7 commit c9d32ca
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ You can see more examples [here](https://github.com/raiden-rs/raiden-dynamo/tree

`raiden` uses `aws-sdk-dynamodb` or `rusoto_dynamodb` as internal client.

#### With aws-sdk-dynamodb
#### With aws-sdk-dynamodb (`aws-sdk` is enabled)

```rust
use raiden::*;
Expand Down Expand Up @@ -49,7 +49,7 @@ async fn main() {
}
```

#### With rusoto_dynamodb
#### With rusoto_dynamodb ( `rusoto` or `rusoto_rustls` or `rustls` is enabled)

```rust
use raiden::*;
Expand Down Expand Up @@ -90,8 +90,8 @@ struct User {
#[tokio::main]
async fn main() {
let client = User::client(config::Region::from_static("us-east-1"))
.table_prefix("prefix")
.table_suffix("suffix");
.table_prefix("prefix-")
.table_suffix("-suffix");

// Print `prefix-user-suffix`
println!("{}", client.table_name());
Expand All @@ -100,7 +100,7 @@ async fn main() {

#### Configure retry strategy

NOTE: Default retry strategy differs between aws-sdk and rusoto( or rusoto_rustls)
NOTE: Default retry strategy differs between `aws-sdk` and `rusoto` ( or `rusoto_rustls` )

- `aws-sdk` ... Not retry in raiden by default. Because you can configure retry strategy using `aws_config`. Or you can configure your own strategy like next example.
- `rusoto` or `rusoto_rustls` ... Enabled retrying in raiden by default. See detail [here](https://github.com/mythrnr/raiden-dynamo/blob/master/raiden/src/retry/mod.rs).
Expand Down

0 comments on commit c9d32ca

Please sign in to comment.