-
Notifications
You must be signed in to change notification settings - Fork 190
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
make it possible to retry any response #3389
Conversation
A new generated diff is ready to view.
A new doc preview is ready to view. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good
A new generated diff is ready to view.
A new doc preview is ready to view. |
@@ -44,6 +44,15 @@ impl ShouldAttempt { | |||
_ => panic!("Expected this to be the `YesAfterDelay` variant but it was the `{self:?}` variant instead"), | |||
} | |||
} | |||
|
|||
/// If this isn't a `No` variant, panic. | |||
pub fn expect_no(self) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this method used outside tests?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No. It's defined in an impl block with #[cfg(feature = "test-util")]
. Of course, that's just beyond the fold so it's not clear that that's the case. Thanks GitHub.
A new generated diff is ready to view.
A new doc preview is ready to view. |
A new generated diff is ready to view.
A new doc preview is ready to view. |
Motivation and Context
awsdocs/aws-doc-sdk-examples#6021
Description
This change makes it possible to retry requests that were successfully deserialized into an output.
Testing
I wrote a test
Checklist
CHANGELOG.next.toml
if I made changes to the smithy-rs codegen or runtime cratesCHANGELOG.next.toml
if I made changes to the AWS SDK, generated SDK code, or SDK runtime cratesBy submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.