Skip to content

Commit

Permalink
Format code
Browse files Browse the repository at this point in the history
  • Loading branch information
mercury2269 committed Feb 8, 2020
1 parent 17a6c10 commit a068d94
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ func convertToEntries(messages []*sqs.Message) []*sqs.SendMessageBatchRequestEnt
result := make([]*sqs.SendMessageBatchRequestEntry, len(messages))
for i, message := range messages {
result[i] = &sqs.SendMessageBatchRequestEntry{
MessageBody: message.Body,
Id: message.MessageId,
MessageBody: message.Body,
Id: message.MessageId,
MessageAttributes: message.MessageAttributes,
}
}
Expand All @@ -132,11 +132,11 @@ func convertSuccessfulMessageToBatchRequestEntry(messages []*sqs.Message) []*sqs

func moveMessages(sourceQueueUrl string, destinationQueueUrl string, svc *sqs.SQS, numberOfMessages int) {
params := &sqs.ReceiveMessageInput{
QueueUrl: aws.String(sourceQueueUrl),
VisibilityTimeout: aws.Int64(2),
WaitTimeSeconds: aws.Int64(0),
MaxNumberOfMessages: aws.Int64(10),
MessageAttributeNames: []*string{aws.String(sqs.QueueAttributeNameAll),},
QueueUrl: aws.String(sourceQueueUrl),
VisibilityTimeout: aws.Int64(2),
WaitTimeSeconds: aws.Int64(0),
MaxNumberOfMessages: aws.Int64(10),
MessageAttributeNames: []*string{aws.String(sqs.QueueAttributeNameAll)},
}

log.Info(color.New(color.FgCyan).Sprintf("Starting to move messages..."))
Expand Down

0 comments on commit a068d94

Please sign in to comment.