From dc699b09b87508e0235bcc5bb1834f542b90e2a5 Mon Sep 17 00:00:00 2001 From: Amit Mor Date: Thu, 12 Oct 2023 19:03:24 +0300 Subject: [PATCH] golangci-lint fixes Signed-off-by: Amit Mor --- pubsub/aws/snssqs/metadata.go | 2 +- pubsub/aws/snssqs/subscription_mgmt.go | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pubsub/aws/snssqs/metadata.go b/pubsub/aws/snssqs/metadata.go index 2f3016ccec..b2d58e96d9 100644 --- a/pubsub/aws/snssqs/metadata.go +++ b/pubsub/aws/snssqs/metadata.go @@ -26,7 +26,7 @@ type snsSqsMetadata struct { // aws partition in which SNS/SQS should create resources. internalPartition string `mapstructure:"-"` // name of the queue for this application. The is provided by the runtime as "consumerID". - SqsQueueName string `mapstructure:"consumerID" mdignore:"true"` + SqsQueueName string `mapstructure:"consumerID" mdignore:"true"` // name of the dead letter queue for this application. SqsDeadLettersQueueName string `mapstructure:"sqsDeadLettersQueueName"` // flag to SNS and SQS FIFO. diff --git a/pubsub/aws/snssqs/subscription_mgmt.go b/pubsub/aws/snssqs/subscription_mgmt.go index 9e7602cc39..d5de2a431b 100644 --- a/pubsub/aws/snssqs/subscription_mgmt.go +++ b/pubsub/aws/snssqs/subscription_mgmt.go @@ -4,9 +4,10 @@ import ( "context" "sync" + "github.com/puzpuzpuz/xsync/v2" + "github.com/dapr/components-contrib/pubsub" "github.com/dapr/kit/logger" - "github.com/puzpuzpuz/xsync/v2" ) type (