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

Closes #68 #69

Merged
merged 1 commit into from
Jan 3, 2022
Merged

Closes #68 #69

merged 1 commit into from
Jan 3, 2022

Conversation

shotmk
Copy link
Contributor

@shotmk shotmk commented Dec 26, 2021

Make sure we send updated SendMessageBatchRequest entries when message payload is transferred through s3.

Issue #68

Description of changes:
Fixes the issue when messages are sent raw even though payload was uploaded to s3. Need to send reference to s3 bucket instead of the actual message in this case.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Make sure we send updated SendMessageBatchRequest entries when message payload is transfered through s3.
}
batchEntries.add(entry);
}

if (hasS3Entries) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, do we actually need this hasS3Entries ? Since batchEntries will contain the actual entries we want to send (some might be s3 pointers and some might be the actual message) we can update the entries for the sendMessageBatchRequest every-time.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess just to avoid having to copy the new entries.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for quick response! and for merging the PR :D

@adam-aws adam-aws self-requested a review January 3, 2022 17:46
@adam-aws adam-aws merged commit fb4305c into awslabs:master Jan 3, 2022
adam-aws added a commit that referenced this pull request Jan 3, 2022
adam-aws added a commit that referenced this pull request Jan 3, 2022
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