aboutsummaryrefslogtreecommitdiff
path: root/roomserver/storage/interface.go
diff options
context:
space:
mode:
authorNeil Alexander <neilalexander@users.noreply.github.com>2021-12-09 15:03:26 +0000
committerGitHub <noreply@github.com>2021-12-09 15:03:26 +0000
commitc3dda0779d5cc176ae6c2213f5321f876fa22a99 (patch)
tree363512be3188785535e3aafdff4f5b370c24be57 /roomserver/storage/interface.go
parent172bd7c478f2a836ed42d43e09edda265d92219a (diff)
Return event NID from `StoreEvent`, match PSQL vs SQLite behaviour, tweak backfill persistence (#2071)
Diffstat (limited to 'roomserver/storage/interface.go')
-rw-r--r--roomserver/storage/interface.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/roomserver/storage/interface.go b/roomserver/storage/interface.go
index 7f6b9855..15764366 100644
--- a/roomserver/storage/interface.go
+++ b/roomserver/storage/interface.go
@@ -70,7 +70,7 @@ type Database interface {
StoreEvent(
ctx context.Context, event *gomatrixserverlib.Event, authEventNIDs []types.EventNID,
isRejected bool,
- ) (types.RoomNID, types.StateAtEvent, *gomatrixserverlib.Event, string, error)
+ ) (types.EventNID, types.RoomNID, types.StateAtEvent, *gomatrixserverlib.Event, string, error)
// Look up the state entries for a list of string event IDs
// Returns an error if the there is an error talking to the database
// Returns a types.MissingEventError if the event IDs aren't in the database.