diff options
author | Neil Alexander <neilalexander@users.noreply.github.com> | 2020-01-24 11:40:27 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-24 11:40:27 +0000 |
commit | dece31f41ee096712a4415f09f4f9725068efe9d (patch) | |
tree | e8970bea861edc114227d09f7baa3282bc4c5fa0 /syncapi/routing/messages.go | |
parent | 49f760a30b6496c8b3e1ceaf98dccc4376f6605d (diff) |
Some fixes for #847 (#850)
* Fix a couple of cases where backfilling events we already had causes panics, hopefully fix ordering of events, update GMSL dependency for backfill URL fixes
* Remove commented out lines from output_room_events_table schema
Diffstat (limited to 'syncapi/routing/messages.go')
-rw-r--r-- | syncapi/routing/messages.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/syncapi/routing/messages.go b/syncapi/routing/messages.go index 26f48ca4..eb678296 100644 --- a/syncapi/routing/messages.go +++ b/syncapi/routing/messages.go @@ -222,13 +222,13 @@ func (r *messagesReq) retrieveEvents() ( // reliable way to define it), it would be easier and less troublesome to // only have to change it in one place, i.e. the database. startPos, err := r.db.EventPositionInTopology( - r.ctx, streamEvents[0].EventID(), + r.ctx, events[0].EventID(), ) if err != nil { return } endPos, err := r.db.EventPositionInTopology( - r.ctx, streamEvents[len(streamEvents)-1].EventID(), + r.ctx, events[len(events)-1].EventID(), ) if err != nil { return |