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

Added checks for nil output when adding consumed capacity #239

Merged
merged 1 commit into from
Jun 30, 2024

Conversation

sardap
Copy link

@sardap sardap commented Jun 26, 2024

Hi,

When testing we found that if the conditional check in a put is not met and we have consumed capacity set it will panic due to output being nil.

DynamoDB is working correctly where the output is nil if a conditional check failed aws/aws-sdk-go-v2#2183.

I have added checks before working calling addConsumedCapacity(u.cc, output.ConsumedCapacity).

@guregu guregu merged commit 06919cf into guregu:master Jun 30, 2024
1 check passed
@guregu
Copy link
Owner

guregu commented Jun 30, 2024

Thanks!

@guregu
Copy link
Owner

guregu commented Jun 30, 2024

Just released this fix in v2.0.1. Appreciate it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants