Remove EventIDMismatchError

This commit is contained in:
Neil Alexander 2021-02-04 10:52:34 +00:00
parent 18be3a2b0c
commit 9b808ec2e8
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944
2 changed files with 0 additions and 19 deletions

View file

@ -81,4 +81,3 @@ func (s *roomStatements) SelectRoomForUpdate(
}
return lastEventID, nil
}

View file

@ -15,8 +15,6 @@
package types
import (
"fmt"
"github.com/matrix-org/gomatrixserverlib"
)
@ -34,22 +32,6 @@ func (s ServerNames) Len() int { return len(s) }
func (s ServerNames) Swap(i, j int) { s[i], s[j] = s[j], s[i] }
func (s ServerNames) Less(i, j int) bool { return s[i] < s[j] }
// A EventIDMismatchError indicates that we have got out of sync with the
// room server.
type EventIDMismatchError struct {
// The event ID we have stored in our local database.
DatabaseID string
// The event ID received from the room server.
RoomServerID string
}
func (e EventIDMismatchError) Error() string {
return fmt.Sprintf(
"mismatched last sent event ID: had %q in database got %q from room server",
e.DatabaseID, e.RoomServerID,
)
}
// tracks peeks we're performing on another server over federation
type OutboundPeek struct {
PeekID string