Skip to content

Commit

Permalink
Fix error wrap
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelreiswildlife committed Jun 24, 2024
1 parent 44394a7 commit 4d34e9c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions extensions/apns_message_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ func (a *APNSMessageHandler) buildAndValidateNotification(notification *pusherAP

payload, err := json.Marshal(notification.Payload)
if err != nil {
return nil, fmt.Errorf("error marshalling notification payload: %s", err.Error())
return nil, fmt.Errorf("error marshalling notification payload: %w", err)
}

n := &structs.ApnsNotification{
Expand All @@ -277,7 +277,6 @@ func (a *APNSMessageHandler) sendNotification(notification *structs.ApnsNotifica
before := time.Now()
defer statsReporterReportSendNotificationLatency(a.StatsReporters, time.Since(before), a.appName, "apns", "client", "apns")

notification.SendAttempts += 1
a.PushQueue.Push(notification)
}

Expand Down

0 comments on commit 4d34e9c

Please sign in to comment.