diff --git a/syncapi/storage/shared/syncserver.go b/syncapi/storage/shared/syncserver.go index 096818f48..3194ca597 100644 --- a/syncapi/storage/shared/syncserver.go +++ b/syncapi/storage/shared/syncserver.go @@ -21,8 +21,6 @@ import ( "fmt" "time" - "github.com/pkg/errors" - eduAPI "github.com/matrix-org/dendrite/eduserver/api" userapi "github.com/matrix-org/dendrite/userapi/api" @@ -623,7 +621,7 @@ func (d *Database) addEDUDeltaToResponse( if fromPos.EDUPosition() != toPos.EDUPosition() { // add typing deltas if err := d.addTypingDeltaToResponse(fromPos, joinedRoomIDs, res); err != nil { - return errors.Wrap(err, "unable to apply typing delta to response") + return fmt.Errorf("unable to apply typing delta to response: %w") } } @@ -631,7 +629,7 @@ func (d *Database) addEDUDeltaToResponse( if (fromPos.EDUPosition() == 0 && toPos.EDUPosition() == 0) || fromPos.EDUPosition() != toPos.EDUPosition() { if err := d.addReceiptDeltaToResponse(fromPos, joinedRoomIDs, res); err != nil { - return errors.Wrap(err, "unable to apply receipts to response") + return fmt.Errorf("unable to apply receipts to response: %w") } }