mirror of
https://github.com/matrix-org/sliding-sync.git
synced 2025-03-10 13:37:11 +00:00
A bunch of comments from review
This commit is contained in:
parent
507b2622b9
commit
ed7f052682
@ -128,7 +128,8 @@ func NewEventTable(db *sqlx.DB) *EventTable {
|
||||
membership TEXT,
|
||||
is_state BOOLEAN NOT NULL, -- is this event part of the v2 state response?
|
||||
event BYTEA NOT NULL,
|
||||
-- True iff the previous timeline event is not known to the proxy.
|
||||
-- True iff this event was seen at the start of the timeline in a limited sync
|
||||
-- (i.e. the preceding timeline event was not known to the proxy).
|
||||
missing_previous BOOLEAN NOT NULL DEFAULT FALSE
|
||||
);
|
||||
|
||||
|
@ -1169,7 +1169,9 @@ func TestEventTable_SelectLatestEventsBetween_MissingPrevious(t *testing.T) {
|
||||
Desc string
|
||||
FromIDExclusive string
|
||||
ToIDInclusive string
|
||||
ExpectIDs []string
|
||||
// NB: ExpectIDs is ordered from newest to oldest. Surprising, but this is what
|
||||
// SelectLatestEventsBetween returns.
|
||||
ExpectIDs []string
|
||||
}{
|
||||
{
|
||||
Desc: "has no gaps - should omit nothing",
|
||||
|
Loading…
x
Reference in New Issue
Block a user