From 1d96a82f25016400536c21a5043943f89db72213 Mon Sep 17 00:00:00 2001 From: Tristan Keen Date: Thu, 8 Apr 2021 10:00:35 +0100 Subject: [PATCH] Switch to use SQS long polling --- pkg/monitor/sqsevent/sqs-monitor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/monitor/sqsevent/sqs-monitor.go b/pkg/monitor/sqsevent/sqs-monitor.go index 6f1b66df..135380b8 100644 --- a/pkg/monitor/sqsevent/sqs-monitor.go +++ b/pkg/monitor/sqsevent/sqs-monitor.go @@ -155,7 +155,7 @@ func (m SQSMonitor) receiveQueueMessages(qURL string) ([]*sqs.Message, error) { QueueUrl: &qURL, MaxNumberOfMessages: aws.Int64(5), VisibilityTimeout: aws.Int64(20), // 20 seconds - WaitTimeSeconds: aws.Int64(0), + WaitTimeSeconds: aws.Int64(20), // Max long polling }) if err != nil {