Skip to content

Commit

Permalink
Merge pull request #2906 from jdisanti/rust-fix-examples
Browse files Browse the repository at this point in the history
Fix Rust DynamoDB manual waiter examples
  • Loading branch information
scmacdon authored Feb 23, 2022
2 parents 4504aa0 + 30e5d0f commit 4d5bbaf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions rust_dev_preview/dynamodb/src/bin/crud.rs
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ where
response: Result<&SdkSuccess<DescribeTableOutput>, &SdkError<DescribeTableError>>,
) -> RetryKind {
match self.inner.classify(response) {
RetryKind::NotRetryable => (),
RetryKind::UnretryableFailure | RetryKind::Unnecessary => (),
other => return other,
};
match response {
Expand All @@ -227,10 +227,10 @@ where
{
RetryKind::Explicit(Duration::from_secs(1))
} else {
RetryKind::NotRetryable
RetryKind::Unnecessary
}
}
_ => RetryKind::NotRetryable,
_ => RetryKind::UnretryableFailure,
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions rust_dev_preview/dynamodb/src/bin/movies.rs
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ where
response: Result<&SdkSuccess<DescribeTableOutput>, &SdkError<DescribeTableError>>,
) -> RetryKind {
match self.inner.classify(response) {
RetryKind::NotRetryable => (),
RetryKind::UnretryableFailure | RetryKind::Unnecessary => (),
other => return other,
};
match response {
Expand All @@ -291,10 +291,10 @@ where
{
RetryKind::Explicit(Duration::from_secs(1))
} else {
RetryKind::NotRetryable
RetryKind::Unnecessary
}
}
_ => RetryKind::NotRetryable,
_ => RetryKind::UnretryableFailure,
}
}
}
Expand Down

0 comments on commit 4d5bbaf

Please sign in to comment.