From a201f5e64333ecb433ec6b18dcc83df18e247b02 Mon Sep 17 00:00:00 2001 From: Mark Haines Date: Fri, 2 Jun 2017 11:14:04 +0100 Subject: [PATCH] Comment on the order of the arrays --- src/github.com/matrix-org/dendrite/roomserver/api/query.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/github.com/matrix-org/dendrite/roomserver/api/query.go b/src/github.com/matrix-org/dendrite/roomserver/api/query.go index 738cb0371..6f26212d0 100644 --- a/src/github.com/matrix-org/dendrite/roomserver/api/query.go +++ b/src/github.com/matrix-org/dendrite/roomserver/api/query.go @@ -41,6 +41,7 @@ type QueryLatestEventsAndStateResponse struct { // The latest events in the room. LatestEvents []gomatrixserverlib.EventReference // The state events requested. + // This list will be in an arbitrary order. StateEvents []gomatrixserverlib.Event } @@ -65,6 +66,7 @@ type QueryStateAfterEventsResponse struct { // If some of previous events do not exist this will be false and StateEvents will be empty. PrevEventsExist bool // The state events requested. + // This list will be in an arbitrary order. StateEvents []gomatrixserverlib.Event } @@ -84,6 +86,7 @@ type QueryEventsByIDResponse struct { // If the roomserver thinks it has a copy of the event, but // fails to read it from the database then it will fail // the entire request. + // This list will be in an arbitrary order. Events []gomatrixserverlib.Event }