mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-23 00:43:32 +08:00
weed/replication/sub: fix dropped error (#4865)
This commit is contained in:
@@ -99,7 +99,10 @@ func (k *AwsSqsInput) ReceiveMessage() (key string, message *filer_pb.EventNotif
|
|||||||
text := *result.Messages[0].Body
|
text := *result.Messages[0].Body
|
||||||
message = &filer_pb.EventNotification{}
|
message = &filer_pb.EventNotification{}
|
||||||
err = proto.Unmarshal([]byte(text), message)
|
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
|
// delete the message
|
||||||
_, err = k.svc.DeleteMessage(&sqs.DeleteMessageInput{
|
_, err = k.svc.DeleteMessage(&sqs.DeleteMessageInput{
|
||||||
QueueUrl: &k.queueUrl,
|
QueueUrl: &k.queueUrl,
|
||||||
|
Reference in New Issue
Block a user