Skip to content
Snippets Groups Projects
Commit 5222ed1d authored by Johan de Klerk's avatar Johan de Klerk
Browse files

#24: Testing - always upload message to s3

parent 4d752359
Branches
Tags
1 merge request!19Resolve "Upload large SQS messages to S3"
......@@ -127,7 +127,7 @@ func SendSQSMessage(msgr Messenger, objectToSend interface{}, currentRequestID *
// If bigger than 200 KB upload message to s3 and send s3 file name to sqs
// The sqs receiver should check the header to see if the message is in the body or on s3
if binary.Size(message) > 200000 {
if binary.Size(message) > 0 {
headers[SQSMessageOnS3Key] = "true"
id := uuid.New()
filename := fmt.Sprintf("%v-%v", sqsType, id.String())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment