Skip to content

Closes #68#69

Merged
adam-aws merged 1 commit into
awslabs:masterfrom
shotmk:master
Jan 3, 2022
Merged

Closes #68#69
adam-aws merged 1 commit into
awslabs:masterfrom
shotmk:master

Conversation

@shotmk

@shotmk shotmk commented Dec 26, 2021

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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