diff options
author | Neil Alexander <neilalexander@users.noreply.github.com> | 2020-04-27 15:47:36 +0100 |
---|---|---|
committer | Neil Alexander <neilalexander@users.noreply.github.com> | 2020-04-27 15:47:36 +0100 |
commit | 87f05721b07cc6d57bcb4ce1d9ad77a9e1847054 (patch) | |
tree | 488eb7ebd660f714263de07647f47d2debb94167 /federationapi/routing/backfill.go | |
parent | 3ab8ebf6b8fbc813bfb3e0e0735e76a69a8ed2dd (diff) |
Update gomatrixserverlib
Diffstat (limited to 'federationapi/routing/backfill.go')
-rw-r--r-- | federationapi/routing/backfill.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/federationapi/routing/backfill.go b/federationapi/routing/backfill.go index 62471b8a..6f85ba4b 100644 --- a/federationapi/routing/backfill.go +++ b/federationapi/routing/backfill.go @@ -97,7 +97,10 @@ func Backfill( } var eventJSONs []json.RawMessage - for _, e := range gomatrixserverlib.ReverseTopologicalOrdering(evs) { + for _, e := range gomatrixserverlib.ReverseTopologicalOrdering( + evs, + gomatrixserverlib.TopologicalOrderByPrevEvents, + ) { eventJSONs = append(eventJSONs, e.JSON()) } |