Skip to content

Commit

Permalink
lets pull every 5 min
Browse files Browse the repository at this point in the history
  • Loading branch information
DoctorOgg committed Mar 6, 2024
1 parent 8a46ed2 commit 7de5022
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion worker/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func Run(testMode bool, config config.Config) {
result, err := svc.ReceiveMessage(&sqs.ReceiveMessageInput{
QueueUrl: &config.SQS.QueueURL,
MaxNumberOfMessages: aws.Int64(1),
WaitTimeSeconds: aws.Int64(20), // Use long polling
WaitTimeSeconds: aws.Int64(300), // lets pull every 5 minutes
})

if err != nil {
Expand Down

0 comments on commit 7de5022

Please sign in to comment.