Browse Source

weed/replication/sub: fix dropped error (#4865)

pull/4867/head
Lars Lehtonen 1 year ago
committed by GitHub
parent
commit
28a3a31b27
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      weed/replication/sub/notification_aws_sqs.go

5
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,

Loading…
Cancel
Save