Lars Lehtonen
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
4 additions and
1 deletions
-
weed/replication/sub/notification_aws_sqs.go
|
|
@ -99,7 +99,10 @@ func (k *AwsSqsInput) ReceiveMessage() (key string, message *filer_pb.EventNotif |
|
|
|
text := *result.Messages[0].Body |
|
|
|
message = &filer_pb.EventNotification{} |
|
|
|
err = proto.Unmarshal([]byte(text), message) |
|
|
|
|
|
|
|
if err != nil { |
|
|
|
err = fmt.Errorf("unmarshal message from sqs %s: %w", k.queueUrl, err) |
|
|
|
return |
|
|
|
} |
|
|
|
// delete the message
|
|
|
|
_, err = k.svc.DeleteMessage(&sqs.DeleteMessageInput{ |
|
|
|
QueueUrl: &k.queueUrl, |
|
|
|