diff options
author | Kegsay <kegan@matrix.org> | 2020-04-28 11:46:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-28 11:46:47 +0100 |
commit | 6d832ae544a6221eb01dc7bad170d3b25a534a1e (patch) | |
tree | ad0eda5ec31154e83188fec4cbc49252cb85b505 /federationapi | |
parent | 3a858afca2368f588b2681de4f4816f26686f540 (diff) |
Implement backfill in the roomserver (#983)
* Initial cut for backfilling
The syncserver now asks the roomserver via QueryBackfill (which already
existed to *handle* backfill requests) which then makes federation requests
via gomatrixserverlib.RequestBackfill.
Currently, tests fail on subsequent /messages requests because we don't know
which servers are in the room, because we are unable to get state snapshots
from a backfilled event because that code doesn't exist yet.
* WIP backfill, doesn't work
* Make initial backfill pass checks
* Persist backfilled events with state snapshots
* Remove debug lines
* Linting
* Review comments
Diffstat (limited to 'federationapi')
-rw-r--r-- | federationapi/routing/backfill.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/federationapi/routing/backfill.go b/federationapi/routing/backfill.go index 6f85ba4b..6f49b9a8 100644 --- a/federationapi/routing/backfill.go +++ b/federationapi/routing/backfill.go @@ -69,6 +69,7 @@ func Backfill( // Populate the request. req := api.QueryBackfillRequest{ + RoomID: roomID, EarliestEventsIDs: eIDs, ServerName: request.Origin(), } |