From 24b34a84985d7525e87311d5106ca9aa533209d0 Mon Sep 17 00:00:00 2001 From: Mark Haines Date: Mon, 5 Jun 2017 16:46:18 +0100 Subject: [PATCH] Put comment back --- src/github.com/matrix-org/dendrite/syncapi/storage/syncserver.go | 1 + 1 file changed, 1 insertion(+) diff --git a/src/github.com/matrix-org/dendrite/syncapi/storage/syncserver.go b/src/github.com/matrix-org/dendrite/syncapi/storage/syncserver.go index d5b2a654..7a74abc7 100644 --- a/src/github.com/matrix-org/dendrite/syncapi/storage/syncserver.go +++ b/src/github.com/matrix-org/dendrite/syncapi/storage/syncserver.go @@ -315,6 +315,7 @@ func (d *SyncServerDatabase) fetchStateEvents(txn *sql.Tx, roomIDToEventIDSet ma if err != nil { return nil, err } + // we know we got them all otherwise an error would've been returned, so just loop the events for _, ev := range evs { roomID := ev.RoomID() stateBetween[roomID] = append(stateBetween[roomID], ev)