mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
weed/replication/sub: fix dropped error (#4865)
This commit is contained in:
parent
a40888d343
commit
28a3a31b27
|
@ -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…
Reference in a new issue